public function get($lineId)
    {
        foreach ($this as $line) {
            if ($line->id === $lineId) {
                return $line;
            }
        }
        return null;
    }
public function get($lineId)
    {
        foreach ($this as $line) {
            if ($line->id === $lineId) {
                return $line;
            }
        }
        return null;
    }
public function get ( $ lineId ) { foreach ( $ this as $ line ) { if ( $ line -> id === $ lineId ) { return $ line ; } } return null ; }
Get a specific order line.
Returns null if the order line cannot be found.

@param  string $lineId
@return OrderLine|null
Get a specific order line . Returns null if the order line cannot be found .