public function newFieldDefinitionCreateStruct($identifier, $fieldTypeIdentifier)
    {
        if (!is_string($identifier)) {
            throw new InvalidArgumentValue('$identifier', $identifier);
        }

        if (!is_string($fieldTypeIdentifier)) {
            throw new InvalidArgumentValue('$fieldTypeIdentifier', $fieldTypeIdentifier);
        }

        return new FieldDefinitionCreateStruct(
            array(
                'identifier' => $identifier,
                'fieldTypeIdentifier' => $fieldTypeIdentifier,
            )
        );
    }
public function newFieldDefinitionCreateStruct($identifier, $fieldTypeIdentifier)
    {
        if (!is_string($identifier)) {
            throw new InvalidArgumentValue('$identifier', $identifier);
        }

        if (!is_string($fieldTypeIdentifier)) {
            throw new InvalidArgumentValue('$fieldTypeIdentifier', $fieldTypeIdentifier);
        }

        return new FieldDefinitionCreateStruct(
            array(
                'identifier' => $identifier,
                'fieldTypeIdentifier' => $fieldTypeIdentifier,
            )
        );
    }
public function newFieldDefinitionCreateStruct ( $ identifier , $ fieldTypeIdentifier ) { if ( ! is_string ( $ identifier ) ) { throw new InvalidArgumentValue ( '$identifier' , $ identifier ) ; } if ( ! is_string ( $ fieldTypeIdentifier ) ) { throw new InvalidArgumentValue ( '$fieldTypeIdentifier' , $ fieldTypeIdentifier ) ; } return new FieldDefinitionCreateStruct ( array ( 'identifier' => $ identifier , 'fieldTypeIdentifier' => $ fieldTypeIdentifier , ) ) ; }
Instantiates a field definition create struct.

@throws \eZ\Publish\Core\Base\Exceptions\InvalidArgumentValue if given identifier is not a string
or given fieldTypeIdentifier is not a string

@param string $fieldTypeIdentifier the required field type identifier
@param string $identifier the required identifier for the field definition

@return \eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct
Instantiates a field definition create struct .