1<?php 2 3/** 4 * Zend Framework (http://framework.zend.com/) 5 * 6 * @link http://github.com/zendframework/zf2 for the canonical source repository 7 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 8 * @license http://framework.zend.com/license/new-bsd New BSD License 9 */ 10namespace Zend\View\Model; 11 12/** 13 * Interface describing a Retrievable Child Model 14 * 15 * Models implementing this interface provide a way to get there children by capture 16 */ 17interface RetrievableChildrenInterface 18{ 19 /** 20 * Returns an array of Viewmodels with captureTo value $capture 21 * 22 * @param string $capture 23 * @param bool $recursive search recursive through children, default true 24 * @return array 25 */ 26 public function getChildrenByCaptureTo($capture, $recursive = true); 27} 28