PHP Class FOF30\Utils\ModelTypeHints

Afficher le fichier Open project: akeeba/fof Class Usage Examples

Protected Properties

Свойство Type Description
$className string Name of the class. If empty will be inferred from the current object
$model FOF30\Model\DataModel The model for which to create type hints

Méthodes publiques

Méthode Description
__construct ( DataModel $model ) Public constructor
getFieldType ( string $type ) : string Translates the database field type into a PHP base type
getHints ( ) : string Returns the docblock with the magic field hints for the model class
getRawHints ( ) : array Return the raw hints array
setClassName ( string $className )

Method Details

__construct() public méthode

Public constructor
public __construct ( DataModel $model )
$model FOF30\Model\DataModel The model to create hints for

getFieldType() public static méthode

Translates the database field type into a PHP base type
public static getFieldType ( string $type ) : string
$type string The type of the field
Résultat string The PHP base type

getHints() public méthode

Returns the docblock with the magic field hints for the model class
public getHints ( ) : string
Résultat string

getRawHints() public méthode

Return the raw hints array
public getRawHints ( ) : array
Résultat array

setClassName() public méthode

public setClassName ( string $className )
$className string

Property Details

$className protected_oe property

Name of the class. If empty will be inferred from the current object
protected string $className
Résultat string

$model protected_oe property

The model for which to create type hints
protected DataModel,FOF30\Model $model
Résultat FOF30\Model\DataModel