/** * @parentBlockId item_one * @parentBlockId item_two * @parentBlockId item_three */ public function testItReturnsParentBlockIdentifiers() { $this->assertSame(array('item_one', 'item_two', 'item_three'), $this->layoutItem->getParentBlockIds()); }
/** * @param array $options * @param string $blockId * @param string $parentBlockId * @param string[] $parentBlockIds */ public function __construct(array $options, $blockId, $parentBlockId, array $parentBlockIds = array()) { parent::__construct($blockId, $parentBlockIds); $this->options = $options; $this->parentBlockId = $parentBlockId; }
/** * Constructs an action item based on passed options * * @param string[] $options * @param string $blockId * @param Closure $callback * @param array $parentBlockIds */ public function __construct($options, $blockId, \Closure $callback, array $parentBlockIds = array()) { parent::__construct($blockId, $parentBlockIds); $this->options = $options; $this->callback = $callback; }