PHP 클래스 Zephir\ClassProperty

Represents a property class
파일 보기 프로젝트 열기: phalcon/zephir 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$classDefinition ClassDefinition
$defaultValue
$docblock
$name
$original
$visibility

공개 메소드들

메소드 설명
__construct ( ClassDefinition $classDefinition, array $visibility, string $name, mixed $defaultValue, string $docBlock, array $original )
checkVisibility ( array $visibility, string $name, array $original ) Checks for visibility congruence
compile ( zephir\CompilationContext $compilationContext ) Produce the code to register a property
getClassDefinition ( ) : ClassDefinition 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 )

메소드 상세

__construct() 공개 메소드

public __construct ( ClassDefinition $classDefinition, array $visibility, string $name, mixed $defaultValue, string $docBlock, array $original )
$classDefinition ClassDefinition
$visibility array
$name string
$defaultValue mixed
$docBlock string
$original array

checkVisibility() 공개 메소드

Checks for visibility congruence
public checkVisibility ( array $visibility, string $name, array $original )
$visibility array
$name string
$original array

compile() 공개 메소드

Produce the code to register a property
public compile ( zephir\CompilationContext $compilationContext )
$compilationContext zephir\CompilationContext

declareProperty() 보호된 메소드

Declare class property with default value
protected declareProperty ( zephir\CompilationContext $compilationContext, string $type, $value )
$compilationContext zephir\CompilationContext
$type string
$value

getBooleanCode() 보호된 메소드

protected getBooleanCode ( $value ) : boolean | string
$value
리턴 boolean | string

getClassDefinition() 공개 메소드

Returns the class definition where the method was declared
public getClassDefinition ( ) : ClassDefinition
리턴 ClassDefinition

getDocBlock() 공개 메소드

Returns the docblock related to the property
public getDocBlock ( ) : string
리턴 string

getLetStatement() 보호된 메소드

protected getLetStatement ( )

getName() 공개 메소드

Returns the property name
public getName ( ) : string
리턴 string

getOriginal() 공개 메소드

public getOriginal ( ) : mixed
리턴 mixed

getType() 공개 메소드

public getType ( )

getValue() 공개 메소드

public getValue ( ) : mixed
리턴 mixed

getVisibilityAccessor() 공개 메소드

Returns the C-visibility accessors for the model
public getVisibilityAccessor ( ) : string
리턴 string

isPrivate() 공개 메소드

Checks whether the variable is private
public isPrivate ( ) : boolean
리턴 boolean

isProtected() 공개 메소드

Checks whether the variable is protected
public isProtected ( ) : boolean
리턴 boolean

isPublic() 공개 메소드

Checks whether the variable is public
public isPublic ( ) : boolean
리턴 boolean

isStatic() 공개 메소드

Checks whether the variable is static
public isStatic ( ) : boolean
리턴 boolean

removeInitializationStatements() 보호된 메소드

Removes all initialization statements related to this property
protected removeInitializationStatements ( &$statements )

프로퍼티 상세

$classDefinition 보호되어 있는 프로퍼티

protected ClassDefinition,zephir $classDefinition
리턴 ClassDefinition

$defaultValue 보호되어 있는 프로퍼티

protected $defaultValue

$docblock 보호되어 있는 프로퍼티

protected $docblock

$name 보호되어 있는 프로퍼티

protected $name

$original 보호되어 있는 프로퍼티

protected $original

$visibility 보호되어 있는 프로퍼티

protected $visibility