public function getWidth()
    {
        return array_reduce(
            $this->cartLines->toArray(),
            function ($width, CartLineInterface $cartLine) {
                return max($width, $cartLine->getWidth());
            },
            0
        );
    }
public function getWidth()
    {
        return array_reduce(
            $this->cartLines->toArray(),
            function ($width, CartLineInterface $cartLine) {
                return max($width, $cartLine->getWidth());
            },
            0
        );
    }
public function getWidth ( ) { return array_reduce ( $ this -> cartLines -> toArray ( ) , function ( $ width , CartLineInterface $ cartLine ) { return max ( $ width , $ cartLine -> getWidth ( ) ) ; } , 0 ) ; }
Return the maximum width of all the cartLines.

@return int Width
Return the maximum width of all the cartLines .