src/ObjectValidator.php
public function addProperty($key, BaseValidator $property)
    {
        if (property_exists($this->properties, $key)) {
            throw new \Exception('Property key exists');
        }

        //Add this key, value to
        $this->properties->{$key} = $property;

        return $this;
    }
public function addProperty($key, BaseValidator $property)
    {
        if (property_exists($this->properties, $key)) {
            throw new \Exception('Property key exists');
        }

        //Add this key, value to
        $this->properties->{$key} = $property;

        return $this;
    }
public function addProperty ( $ key , BaseValidator $ property ) { if ( property_exists ( $ this -> properties , $ key ) ) { throw new \ Exception ( 'Property key exists' ) ; } //Add this key, value to $ this -> properties -> { $ key } = $ property ; return $ this ; }
Add a property to this object validator
@param BaseValidator $property
@throws \Exception If property key exists
Add a property to this object validator