* * 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:----Q3tYue5BwgJEeq1vDL2Tykr0eT20E1TlK6KCfSjVGi9Ez2GudOJdlimNW15TOl3mP2GrTiNIPmp/oztieuhaBeoOOMWE0I2I88E6FHAY2/SzXEQ+fI7GuaSRUsvBpCEhjGjt+K+UDnB28UGAFJXoNwLSKSEYPQqzclAjzssn7wp6KXZjwKt4jkMfHuuVjyw+Yp0112E3ikDb82N7BUuEXw9pLlAh3Kb7tWyGc//P+uwj4YEXaKa3Eshv4ImWBZy0fqYoU7Fa2coj5fYKQRrhiO8RCuokYnFpy1HCm44nsYkbQHwdUOLAtJ6EbdFpH9XAeha55LgBQCI0fixIFvLErOTXwSdizA8BKMx4A9SqxzZ4uC9RK5OED7NEcmWYCN4o1Xj4G3QiumaUa2USid//XsyuyP2xYkn4YJjJcOZTkWxQ9yKWB906FY3+oWqf3FPPmF2V0Vwbd5JNv/Nl7Z4u/XwQo0fC+uAe2ftSGvM8e08UmeT5lWvfvL7Zhi/3h0M3Sy9DoQTqg5+qWbp6JCdc5XCx0uP/iRCuYENg+eYtsbcp53lDldujE8hz9J6ZnfoxRniGh1OG4kPvADqlXZQy/k+TDwIR5LLevsHkD4YA3//AfB77mgmYrISOZG0Bo0EIGHfd0Vl24utWwQzbjZ4U6KmeF8qs05RoTKzx/p9wNo4=----ATTACHMENT:----NjcwNTgyOTk3NTE4NTkwOSA0NjAxOTY1MjIyMDkxMjAzIDM0NjI1NjIyNDg3NTA5OTI=