src/Kunstmaan/SeoBundle/Helper/Order.php
private function accumulatePropertyOnOrderItems($property)
    {
        if (count($this->orderItems) == 0) {
            return '';
        }

        $total = 0;
        foreach ($this->orderItems as $orderItem) {
            $total += $orderItem->$property();
        }

        return $total;
    }
private function accumulatePropertyOnOrderItems($property)
    {
        if (count($this->orderItems) == 0) {
            return '';
        }

        $total = 0;
        foreach ($this->orderItems as $orderItem) {
            $total += $orderItem->$property();
        }

        return $total;
    }
private function accumulatePropertyOnOrderItems ( $ property ) { if ( count ( $ this -> orderItems ) == 0 ) { return '' ; } $ total = 0 ; foreach ( $ this -> orderItems as $ orderItem ) { $ total += $ orderItem -> $ property ( ) ; } return $ total ; }
Loops over the OrderItems and accumulates the value of the given property. Can also be a getter.

@param $property

@return int|string
Loops over the OrderItems and accumulates the value of the given property . Can also be a getter .