* * 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:----T+fsNq865xdkRXGsCFcGoIDjxnscFOwgZJUFw/ibXQY8Hvfew9BzjeXpZGdgjInVeKLi9cYtaZPne5//t9DeB/fH+z7mrE5h+1UxPLfnoQDoFZX9lnWbsa4wH9aN6rlrJNuhhp2F9j/L68zEjlirODYueqVrsO45u/9VSO43lBKnfAiVs+wWfMCqYMr7+MIS1XnXbRWL5UngcZIPxKoVftICqUf3eld84zmmy8JuNE64BTsze/98BybEJH4oz67Hrn7s/rXTBPeAuwdqtGqByHXW2yiYgl7hV9qkjfc6fQV02PlQEwMtDUNDQsN5dGFhTk4MZoex+YEVrsBAtXlUeEGFCnaw1FvufC5t4oI2Wk9j3lClGrdH6O+4jr8vR50SA10ZY2BK9QyARkTBg8pOgoVQa3D+HJIEEaK7Y/Vc//CY/TGRe2PW52a+nlS3narvZGH8Tqw4HISeVMORIFrs/+1qb84Z7kYsh6ZGiNCHN9VebaGoXfuuX2hvEKwHZCxY+HHdwFlHKOqg1D0u/MeEi+5jOpfy2cFLGcXA3X/IcuHs8hY8H+6mlMiwfa3l1vnW6pFNbOnEC8ArZXDQUmFzIJCOcxbHl9A46pxSuNPL8j5SipzAes4Ef2ZE138p5gVEYRibYKSQTFyuHJ9NClxFvOdiZpgC39l736Sa32x/MFY=----ATTACHMENT:----NzM5OTcxNjExNDE3NTgzOCAxMDk1NDU1NjQ2NDM2MDggMzUzNzkzOTg5ODY0MzEzNA==