PHP Class Elcodi\Admin\CartBundle\Builder\OrdersNotShippedBuilder

Inheritance: extends Elcodi\Component\Menu\Builder\Abstracts\AbstractMenuBuilder, implements Elcodi\Component\Menu\Builder\Interfaces\MenuBuilderInterface
Show file Open project: elcodi/bamboo

Protected Properties

Property Type Description
$orderRepository Elcodi\Component\Cart\Repository\OrderRepository Order repository

Public Methods

Method Description
__construct ( Elcodi\Component\Menu\Factory\NodeFactory $menuNodeFactory, Elcodi\Component\Cart\Repository\OrderRepository $orderRepository ) Construct
build ( Elcodi\Component\Menu\Entity\Menu\Interfaces\MenuInterface $menu ) Build the menu

Private Methods

Method Description
getNonShippedOrdersCount ( ) : integer Get all non-shipped orders count

Method Details

__construct() public method

Construct
public __construct ( Elcodi\Component\Menu\Factory\NodeFactory $menuNodeFactory, Elcodi\Component\Cart\Repository\OrderRepository $orderRepository )
$menuNodeFactory Elcodi\Component\Menu\Factory\NodeFactory Menu node factory
$orderRepository Elcodi\Component\Cart\Repository\OrderRepository Order repository

build() public method

Build the menu
public build ( Elcodi\Component\Menu\Entity\Menu\Interfaces\MenuInterface $menu )
$menu Elcodi\Component\Menu\Entity\Menu\Interfaces\MenuInterface Menu

Property Details

$orderRepository protected property

Order repository
protected OrderRepository,Elcodi\Component\Cart\Repository $orderRepository
return Elcodi\Component\Cart\Repository\OrderRepository