public function getOrderFor(string $property) : ?Order
    {
        /* @var $order Order */
        foreach ($this as $order) {
            if ($order->getProperty() == $property) {
                return $order;
            }
        }
        return null;
    }
public function getOrderFor(string $property) : ?Order
    {
        /* @var $order Order */
        foreach ($this as $order) {
            if ($order->getProperty() == $property) {
                return $order;
            }
        }
        return null;
    }
public function getOrderFor ( string $ property ) : ? Order { /* @var $order Order */ foreach ( $ this as $ order ) { if ( $ order -> getProperty ( ) == $ property ) { return $ order ; } } return null ; }
Returns the direction defined to the given property.

@param string $property
@return Order
Returns the direction defined to the given property .