public function validatePropertyType($type)
    {
        if (!in_array($type, $this->getPropertyTypes())) {
            throw $this->getException(
                'The property type isn\'t valid ("%s" given, expecting one of following: %s)',
                [$type, implode(', ', $this->getPropertyTypes())]
            );
        }

        return $type;
    }
public function validatePropertyType($type)
    {
        if (!in_array($type, $this->getPropertyTypes())) {
            throw $this->getException(
                'The property type isn\'t valid ("%s" given, expecting one of following: %s)',
                [$type, implode(', ', $this->getPropertyTypes())]
            );
        }

        return $type;
    }
public function validatePropertyType ( $ type ) { if ( ! in_array ( $ type , $ this -> getPropertyTypes ( ) ) ) { throw $ this -> getException ( 'The property type isn\'t valid ("%s" given, expecting one of following: %s)' , [ $ type , implode ( ', ' , $ this -> getPropertyTypes ( ) ) ] ) ; } return $ type ; }
Validates property type

@param string $type

@return string
@throws \InvalidArgumentException
Validates property type