Conditions | 5 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function __construct($name, $href = null, $embedded = null, array $attributes = array(), Exclusion $exclusion = null) |
||
43 | { |
||
44 | if (null !== $embedded && !$embedded instanceof Embedded) { |
||
45 | $embedded = new Embedded($embedded); |
||
46 | } |
||
47 | |||
48 | if (null === !$href && null === $embedded) { |
||
49 | throw new \InvalidArgumentException('$href and $embedded cannot be both null.'); |
||
50 | } |
||
51 | |||
52 | $this->name = $name; |
||
53 | $this->href = $href; |
||
54 | $this->embedded = $embedded; |
||
55 | $this->attributes = $attributes; |
||
56 | $this->exclusion = $exclusion; |
||
57 | } |
||
58 | |||
99 |