| Total Complexity | 5 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class EnclosureBuilder |
||
| 6 | { |
||
| 7 | /** @var ItemBuilder */ |
||
| 8 | private $itemBuilder; |
||
| 9 | |||
| 10 | /** @var string */ |
||
| 11 | private $url; |
||
| 12 | |||
| 13 | /** @var int */ |
||
| 14 | private $length; |
||
| 15 | |||
| 16 | /** @var string */ |
||
| 17 | private $type; |
||
| 18 | |||
| 19 | 1 | public function __construct(ItemBuilder $itemBuilder) |
|
| 20 | { |
||
| 21 | 1 | $this->itemBuilder = $itemBuilder; |
|
| 22 | 1 | } |
|
| 23 | |||
| 24 | 1 | public function url(string $url): EnclosureBuilder |
|
| 25 | { |
||
| 26 | 1 | $this->url = $url; |
|
| 27 | 1 | return $this; |
|
| 28 | } |
||
| 29 | |||
| 30 | 1 | public function length(int $length): EnclosureBuilder |
|
| 31 | { |
||
| 32 | 1 | $this->length = $length; |
|
| 33 | 1 | return $this; |
|
| 34 | } |
||
| 35 | |||
| 36 | 1 | public function type($ype) |
|
| 40 | } |
||
| 41 | |||
| 42 | 1 | public function toDOMElement(\DOMDocument $dom): \DOMElement |
|
| 50 | } |
||
| 51 | } |
||
| 52 |