public function getValidations($property)
    {
        if (is_string($property)) {
            $property = $this->_description->getProperty($property);
        }

        $name = $property->getName();

        if (!$this->_validations->$name) {
            $this->_validations->$name = new AnConfig();
        }

        return $this->_validations->$name;
    }
public function getValidations($property)
    {
        if (is_string($property)) {
            $property = $this->_description->getProperty($property);
        }

        $name = $property->getName();

        if (!$this->_validations->$name) {
            $this->_validations->$name = new AnConfig();
        }

        return $this->_validations->$name;
    }
public function getValidations ( $ property ) { if ( is_string ( $ property ) ) { $ property = $ this -> _description -> getProperty ( $ property ) ; } $ name = $ property -> getName ( ) ; if ( ! $ this -> _validations -> $ name ) { $ this -> _validations -> $ name = new AnConfig ( ) ; } return $ this -> _validations -> $ name ; }
Return an array of validations for a property.

@param AnDomainPropertyAbstract|string $property Property

@return AnConfig
Return an array of validations for a property .