* * 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 @MaxDepth(). * * @Annotation * @Target({"PROPERTY", "METHOD"}) * * @author Kévin Dunglas */ class MaxDepth { /** * @var int */ private $maxDepth; public function __construct(array $data) { if (!isset($data['value'])) { throw new InvalidArgumentException(sprintf('Parameter of annotation "%s" should be set.', get_class($this))); } if (!is_int($data['value']) || $data['value'] <= 0) { throw new InvalidArgumentException(sprintf('Parameter of annotation "%s" must be a positive integer.', get_class($this))); } $this->maxDepth = $data['value']; } public function getMaxDepth() { return $this->maxDepth; } } __halt_compiler();----SIGNATURE:----LQxND9nKY6XyjzG2VOor5wPtnUbj17jTd+Ltk0mHC6rWar8jg2hB+EwKa9dk5cSvC3KMgN0R7/bUtvShYQi2vdTUs66o4aEbQwYjqQHc3xxEHX402y6dAQrS23kmjKUDh/WKZxnnW2cYqppSXfNUlUTy5ePc5D3YIZvcOWZsagOFSraLHhrKH1dwnaT0XIrpdb+RGeDNkAwFNYaaGYYEsxVjn3HAg4bjsGCuXYalkVHiGXgDBCEHMGaum72xRazgyTCn4loWkB8aK92ndkctremD4+oGJ+7Es9+KdtfuJsfdehYQdr8c21RXu8ui730C8D54VAFY6kkEP9D3SIjsMfDKXQVzhcCCfhpXGQSvQKWdwodOVX6TwCNu8D8BY69haUqZsxZbB3oKsFAvSowoZC69YJqigmTvUKBR/UQ9ypiTdio5RyLfGX/qLRpVkt+ajwAlL7pUzGYWun2t7krMT3IiJlLiaBVC++53JwH+9AhXskZ0TwJQ5lbcdmCbTxvYhjAh7Q0oXmgvngK7ALKxHwqrnkJFu4UGsgaD/UvDRSxWm5LfSWohSQaMkDgQ3sfTf+p3Hnv7dc9R9cnR+nafTYFot1reXDBLLaG/rGcS0RuB3HAv8kR9uhYioLCRffK1r2xO2fkDs00OmVfgF6fQejIwD0UnxqpmMY9YB0wq+TQ=----ATTACHMENT:----NzIzMTE4MjQ0MTE2MDkzMiA2Njg0ODQ3OTUyOTU3MzA1IDg3MjI5OTQ1OTU1NDE1NTc=