* @license http://www.apache.org/licenses/LICENSE-2.0 * @link http://phpsx.org */ class Discriminator { /** @var string */ protected $propertyName; /** @var array */ protected $mapping; public function __construct(array $values) { $value = reset($values); $this->propertyName = $value[0] ?? null; $this->mapping = $value[1] ?? null; if (!is_string($this->propertyName)) { throw new \InvalidArgumentException('Discriminator annotation first argument must be a string'); } if ($this->mapping !== null && !is_array($this->mapping)) { throw new \InvalidArgumentException('Discriminator annotation second argument must be an array'); } } /** * @return string */ public function getPropertyName(): ?string { return $this->propertyName; } /** * @return array */ public function getMapping(): ?array { return $this->mapping; } } __halt_compiler();----SIGNATURE:----xMqBwBcAJIl1w9h0rg9YUWN77fv/YBpBNjstUwYuQAxn1aCVe3khddh1P5xTIal7CHUA6LeXtkZAKZUHno0ABz4k98UuCA9nHjh3LkzydQPfTGLiT5dDbXJxMq7jgB8AYA9fmBfzoQKeAp0YdbbrlfgGIZsyK6WC4A4y85qjFUTYHnPGo9umxHvw1LEvOiRA+BzprhCQXpWo7CZJpEfAxpY7Ad+sLwsT5mfQYHc16Jl1m9l5GITZ3DTSJIhAFVK97ilOEMBLUT119DNWAeUB8yBKuOOdKsZHtIbHhEJ0X6nzZ3o7yD6uUTBy7KMFvo3xVgPMZW+fs24DrTYcpfaiSqcQPsmgFJHBwxBK8aKDO2cS9eZZMvzEc+W9kSIh9s+IUbarMij/XzjvVDiw96BP57wqY7vNONdc2WhMY2bW1Slx1JliUu6/63n5+m5BY25vGwhVRQqi75gsuxxQZ1B4ZT4etCqC26s1ZSiPV+u6g7AnRz9o7qAbuhirpADyoDfj7Ne6BdbJDQBF9FOrpLMaba0OWvIh5RPplz0OifTkLHf5vg6x7yOP4kg6pS+jUvqmTIUjQysMFiCOiKE4wC8tL9nq5f/270vWI8rd/aMfZhL5nvNNqe9xkAVqWAtGIiGn6K/3wDeme6M/U5oYY7yDjWrgj14sI3KNneaXQOIfpXg=----ATTACHMENT:----NTgzODA3Nzk4NzcwNjkzIDgwNzk0MTYzNDcxOTA5NjUgNzAxODYyOTY0MDcwMzU1