* * 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:----IvhyGyHSc/jmes3auMXq1ZomqnqRosNHprBgY5RHqSv3/RzAJQQMmpT4XrfVjqtmNcpZVMT5pu0p/ZTDNFmmHRXnP3wd25rnj/8KM4RJIIOGjgk/wtNBNbnH4y79MdSgGmp9uhaD/AUn/7KRNhB5/cV8qAioPSALIQPUKDIxQAN6oiiZWGqKKB2jCveOJFH3hYpKIo/OUU33wK1jybdLU6GfIRF68jrC01vrVmQphi1DOmcfcWL+Kjp/xGTWJgbEBHyId0JuKDbl45Dx78vTTji2HdtQ0pYPILHLcIstPqURgR5iQIchBUlp5lDX1tjtu55MSbGxtOjWfZ9y2Re5zIYCfKiKPSp5NrKcp4a2OxpeURX0hXVT+WE5Y7iUthv8L8xmmYce/evXSUP+s3kZ9eOhOneAZ1apSmU3LUCeaS+mXL2p0z3saB99T9QdvUWcVOKtfxzIAl6Y7/Nt2dvAhNkURK7oDW3C7fXvQIEf2G1obK6YYdnaQNol3kJaR3/j2/Rp/fSz2kR9GiEykxcYab0qrUAoEiSucFz3JQnYUmJr1Yk6XqKFW5wKGV0GEKRwso//Tnwj9bK+rHXqBVtSaSJQ5PjaFkncNR14NKppGysnY1q771nA3z+DgTumSlmVgqhuFWC1TT4SU20wsF7TaH1W6CvEJAJ/Nyualf3zmtg=----ATTACHMENT:----OTQ0MjQ2Nzg4OTM5ODE1MSA5NTYwMDg0Nzk5MDA2OTQzIDQxOTc5ODExMTg5MzUyOTY=