Exemplo n.º 1
0
 /**
  * Set the maximum reference depth
  * @param $depth
  */
 public function setMaxDepth($depth)
 {
     if (!is_numeric($depth)) {
         throw new \InvalidArgumentException('Expected depth to be numeric');
     }
     self::$maxDepth = $depth;
 }
Exemplo n.º 2
0
 public function setMaxDepth($maxDepth)
 {
     self::$maxDepth = $maxDepth;
 }