Doctrine\ODM\CouchDB\Types\Type::hasType PHP Метод

hasType() публичный статический Метод

Checks if exists support for a type.
public static hasType ( string $name ) : boolean
$name string Name of the type
Результат boolean TRUE if type is supported; FALSE otherwise
    public static function hasType($name)
    {
        return isset(self::$_typesMap[$name]);
    }

Usage Example

Пример #1
0
 public function testHasType()
 {
     $this->assertTrue(Type::hasType('mixed'));
 }