Свойство | Тип | Описание | |
---|---|---|---|
$classDefinition | |||
$defaultValue | |||
$docblock | |||
$name | |||
$original | |||
$visibility |
Метод | Описание | |
---|---|---|
__construct ( |
||
checkVisibility ( array $visibility, string $name, array $original ) | Checks for visibility congruence | |
compile ( zephir\CompilationContext $compilationContext ) | Produce the code to register a property | |
getClassDefinition ( ) : |
Returns the class definition where the method was declared | |
getDocBlock ( ) : string | Returns the docblock related to the property | |
getName ( ) : string | Returns the property name | |
getOriginal ( ) : mixed | ||
getType ( ) | ||
getValue ( ) : mixed | ||
getVisibilityAccessor ( ) : string | Returns the C-visibility accessors for the model | |
isPrivate ( ) : boolean | Checks whether the variable is private | |
isProtected ( ) : boolean | Checks whether the variable is protected | |
isPublic ( ) : boolean | Checks whether the variable is public | |
isStatic ( ) : boolean | Checks whether the variable is static |
Метод | Описание | |
---|---|---|
declareProperty ( zephir\CompilationContext $compilationContext, string $type, $value ) | Declare class property with default value | |
getBooleanCode ( $value ) : boolean | string | ||
getLetStatement ( ) | ||
removeInitializationStatements ( &$statements ) | Removes all initialization statements related to this property |
Метод | Описание | |
---|---|---|
initializeArray ( $compilationContext ) |
public compile ( zephir\CompilationContext $compilationContext ) | ||
$compilationContext | zephir\CompilationContext |
protected declareProperty ( zephir\CompilationContext $compilationContext, string $type, $value ) | ||
$compilationContext | zephir\CompilationContext | |
$type | string | |
$value |
protected getBooleanCode ( $value ) : boolean | string | ||
$value | ||
Результат | boolean | string |
public getClassDefinition ( ) : |
||
Результат |
public getDocBlock ( ) : string | ||
Результат | string |
public getVisibilityAccessor ( ) : string | ||
Результат | string |
public isProtected ( ) : boolean | ||
Результат | boolean |
protected removeInitializationStatements ( &$statements ) |
protected ClassDefinition,zephir $classDefinition | ||
Результат |