| 1 | <?php |
||
| 7 | final class Audience implements SerializableInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Store the Audience enum internally as a string to make sure that PHP encode works. |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | private $audienceType; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param AudienceType $audienceType |
||
| 17 | */ |
||
| 18 | public function __construct(AudienceType $audienceType) |
||
| 22 | |||
| 23 | public function getAudienceType(): AudienceType |
||
| 27 | |||
| 28 | public static function deserialize(array $data): Audience |
||
| 34 | |||
| 35 | public function serialize(): array |
||
| 41 | |||
| 42 | public function equals(Audience $otherAudience): bool |
||
| 46 | } |
||
| 47 |