comparison vendor/symfony/serializer/Annotation/MaxDepth.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
29 private $maxDepth; 29 private $maxDepth;
30 30
31 public function __construct(array $data) 31 public function __construct(array $data)
32 { 32 {
33 if (!isset($data['value'])) { 33 if (!isset($data['value'])) {
34 throw new InvalidArgumentException(sprintf('Parameter of annotation "%s" should be set.', get_class($this))); 34 throw new InvalidArgumentException(sprintf('Parameter of annotation "%s" should be set.', \get_class($this)));
35 } 35 }
36 36
37 if (!is_int($data['value']) || $data['value'] <= 0) { 37 if (!\is_int($data['value']) || $data['value'] <= 0) {
38 throw new InvalidArgumentException(sprintf('Parameter of annotation "%s" must be a positive integer.', get_class($this))); 38 throw new InvalidArgumentException(sprintf('Parameter of annotation "%s" must be a positive integer.', \get_class($this)));
39 } 39 }
40 40
41 $this->maxDepth = $data['value']; 41 $this->maxDepth = $data['value'];
42 } 42 }
43 43