Doctrine\OXM\Types\Type::hasType PHP Method

hasType() public static method

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

Usage Example

Example #1
0
 /**
  * @backupStaticAttributes enabled
  */
 public function testAddType()
 {
     Type::addType('mock', 'Doctrine\\Tests\\Mocks\\TypeMock');
     $this->assertTrue(Type::hasType('mock'));
     $this->assertEquals('mock', Type::getType('mock')->getName());
 }
All Usage Examples Of Doctrine\OXM\Types\Type::hasType