Skip to content

Commit

Permalink
Remove constructor from interface
Browse files Browse the repository at this point in the history
  • Loading branch information
mwoynarski committed May 14, 2020
1 parent b1cdb95 commit eb1f035
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
7 changes: 4 additions & 3 deletions src/Kunstmaan/NodeBundle/Helper/NodeMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,11 @@ public function __construct(
}

/**
* @param Node $node
* @param Node $node
* @param NodeTranslation $nodeTranslation
* @param bool $parent
* @param NodeMenu $menu
* @param bool $parent
* @param NodeMenu $menu
*
* @return NodeMenuItemInterface
*/
protected function createMenuItem(Node $node, NodeTranslation $nodeTranslation, $parent = false, NodeMenu $menu)
Expand Down
10 changes: 0 additions & 10 deletions src/Kunstmaan/NodeBundle/Helper/NodeMenuItemInterface.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
<?php


namespace Kunstmaan\NodeBundle\Helper;


use Kunstmaan\NodeBundle\Entity\HasNodeInterface;
use Kunstmaan\NodeBundle\Entity\Node;
use Kunstmaan\NodeBundle\Entity\NodeTranslation;

interface NodeMenuItemInterface
{
/**
* @param Node $node The node
* @param NodeTranslation $nodeTranslation The nodetranslation
* @param NodeMenuItem|null|false $parent The parent nodemenuitem
* @param NodeMenu $menu The menu
*/
public function __construct(Node $node, NodeTranslation $nodeTranslation, $parent = false, NodeMenu $menu);

/**
* @return int
*/
Expand Down

0 comments on commit eb1f035

Please sign in to comment.