1 | <?php |
||
19 | class DependencyResult |
||
20 | { |
||
21 | /** |
||
22 | * Name of this result. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | private $name; |
||
27 | |||
28 | /** |
||
29 | * Entities collection. |
||
30 | * |
||
31 | * @var array|\Traversable |
||
32 | */ |
||
33 | private $entities; |
||
34 | |||
35 | /** |
||
36 | * ViewScript to render the entity list with. |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | private $viewScript; |
||
41 | |||
42 | /** |
||
43 | * Description |
||
44 | * |
||
45 | * @var string |
||
46 | */ |
||
47 | private $description; |
||
48 | |||
49 | /** |
||
50 | * DependencyResult constructor. |
||
51 | * |
||
52 | * There are two valid options: |
||
53 | * - 'description': Sets the description. |
||
54 | * - 'viewScript': Sets the view script. |
||
55 | * |
||
56 | * @param string $name |
||
57 | * @param array|\Traversable $entities |
||
58 | * @param array|null $options |
||
59 | */ |
||
60 | public function __construct($name, $entities, array $options = null) |
||
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | public function getName() |
||
79 | |||
80 | /** |
||
81 | * @return array|\Traversable |
||
82 | */ |
||
83 | public function getEntities() |
||
87 | |||
88 | /** |
||
89 | * @return string |
||
90 | */ |
||
91 | public function getViewScript() |
||
95 | |||
96 | /** |
||
97 | * @return string |
||
98 | */ |
||
99 | public function getDescription() |
||
103 | } |
||
104 |