public function getWeight()
    {
        return array_reduce(
            $this->cartLines->toArray(),
            function ($weight, CartLineInterface $cartLine) {
                return $weight + $cartLine->getWeight();
            },
            0
        );
    }
public function getWeight()
    {
        return array_reduce(
            $this->cartLines->toArray(),
            function ($weight, CartLineInterface $cartLine) {
                return $weight + $cartLine->getWeight();
            },
            0
        );
    }
public function getWeight ( ) { return array_reduce ( $ this -> cartLines -> toArray ( ) , function ( $ weight , CartLineInterface $ cartLine ) { return $ weight + $ cartLine -> getWeight ( ) ; } , 0 ) ; }
Get the sum of all CartLines weight.

@return int Weight
Get the sum of all CartLines weight .