Свойство | Тип | Описание | |
---|---|---|---|
$className | string | Name of the class. If empty will be inferred from the current object | |
$model | The model for which to create type hints |
Метод | Описание | |
---|---|---|
__construct ( |
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 ) |
public __construct ( |
||
$model | The model to create hints for |
public static getFieldType ( string $type ) : string | ||
$type | string | The type of the field |
Результат | string | The PHP base type |
public getRawHints ( ) : array | ||
Результат | array |
protected string $className | ||
Результат | string |