* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Serializer\Annotation; use Symfony\Component\Serializer\Exception\InvalidArgumentException; /** * Annotation class for @Groups(). * * @Annotation * @Target({"PROPERTY", "METHOD"}) * * @author Kévin Dunglas */ class Groups { /** * @var string[] */ private $groups; /** * @throws InvalidArgumentException */ public function __construct(array $data) { if (!isset($data['value']) || !$data['value']) { throw new InvalidArgumentException(sprintf('Parameter of annotation "%s" cannot be empty.', \get_class($this))); } $value = (array) $data['value']; foreach ($value as $group) { if (!\is_string($group)) { throw new InvalidArgumentException(sprintf('Parameter of annotation "%s" must be a string or an array of strings.', \get_class($this))); } } $this->groups = $value; } /** * Gets groups. * * @return string[] */ public function getGroups() { return $this->groups; } } __halt_compiler();----SIGNATURE:----PnCggVROpy1Q6OcIIw+sKZrxg6Zj0itCzdNvToaqzTYAXnOCAjK2zUE7/OzgnqA8mUy3iaDOEQnmrDgdpdgWRUtDKGLQ9d37JHSIaPpcxNNx0323bm2SyiSzN5NGzpwqvl/HCwntN5wKOls90wxbMmTRQyAvkXA17t8rzLBOZQ7QV5rkm0rJ3f6DOrlVExE+5yvMDLutaiccyKsgzk9HPBs1x+Te7vv8O9rm+vGS0b0/E04eHxlEIdVgeV7ezPLAJfK0t7wtJpR4uorvg1H6y6z5xTr1m9hH+cb9oXLiWegJ4a4KC2cfd4mrcQFD72a6v861t6ilyjouJMiZCjSxH/ZAsU1cjup06IW1md5vzYMXx9Vsc8XrSQw+Z+v2cpUYyNByU4waFnvBzZbnP8fJDNOqFxb7LovZ9PG/j5Y/kRtLkyK2TuI3FwsrsJyn2FpKEClqhjIGWaeqjb2sSN8iR7CphwMjKE862k7XA2FUc4J9g/ODs3ORunj+31Lw+6LWpbku7072VEV1h24OgI23ZUTeB+k8d2Ffkhb6j3NanGHYLLHE7u5OvDPmk8ke1NZm+Qm21x1trDITJ0KtLSD9fDyEz5DfKgox+PExAYKws0aZ9pqAtcaLTOxiNpNXxeo9Be2fUflSL/y46OW7a5djPB6w9yTe8rmGA4vZPJyW0E8=----ATTACHMENT:----MjA3MzY5OTMyMTY3NDYwMCA4MTYzNjA4NTI1MTA4MTY4IDgyMTQ2Njc0NjgyNzM0MTU=