| Conditions | 5 |
| Paths | 5 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 60 | public function __construct($name, $entities, array $options = null) |
||
| 61 | { |
||
| 62 | if (!is_array($entities) && !$entities instanceOf \Traversable) { |
||
| 63 | throw new \InvalidArgumentException('Entities must be an array or an instance of \Traversable'); |
||
| 64 | } |
||
| 65 | |||
| 66 | $this->name = (string) $name; |
||
| 67 | $this->entities = $entities; |
||
| 68 | $this->viewScript = isset($options['viewScript']) ? $options['viewScript'] : 'core/entity-eraser/dependency-list'; |
||
| 69 | $this->description = isset($options['description']) ? $options['description'] : ''; |
||
| 70 | } |
||
| 71 | |||
| 104 |