Ejemplo n.º 1
0
 public function __construct($type)
 {
     parent::__construct(Type::TYPE_OBJECT);
     $this->type = $type;
 }
Ejemplo n.º 2
0
 /**
  * JsonValidator constructor.
  * @param array $ruleSet set of rules for JSON.
  */
 public function __construct(array $ruleSet)
 {
     parent::__construct(TypeOf::TYPE_ARRAY);
     $this->ruleSet = $ruleSet;
 }