You are here

public function TestObjectMetadata::getTypeOfField in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/PersistentObjectTest.php \Doctrine\Tests\Common\Persistence\TestObjectMetadata::getTypeOfField()

Returns a type name of this field.

This type names can be implementation specific but should at least include the php types: integer, string, boolean, float/double, datetime.

Parameters

string $fieldName:

Return value

string

Overrides ClassMetadata::getTypeOfField

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/PersistentObjectTest.php, line 192

Class

TestObjectMetadata

Namespace

Doctrine\Tests\Common\Persistence

Code

public function getTypeOfField($fieldName) {
  $types = array(
    'id' => 'integer',
    'name' => 'string',
  );
  return $types[$fieldName];
}