| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class AudioItem implements \JsonSerializable |
||
| 8 | { |
||
| 9 | 4 | public function __construct( |
|
| 10 | public ?Stream $stream = null, |
||
| 11 | public ?Metadata $metadata = null |
||
| 12 | ) { |
||
| 13 | 4 | } |
|
| 14 | |||
| 15 | 4 | public static function create(Stream $steam, ?Metadata $metadata = null): self |
|
| 16 | { |
||
| 17 | 4 | return new self($steam, $metadata); |
|
| 18 | } |
||
| 19 | |||
| 20 | 1 | public function jsonSerialize(): array |
|
| 31 | } |
||
| 32 | } |
||
| 33 |