Skip to content

Class Property

Class \Klitsche\Dog\Elements\Property

Constants

TYPE

public TYPE = 'Property'

Methods

__construct()

public __construct ( 
    \Klitsche\Dog\ProjectInterface $project, 
    \Klitsche\Dog\Elements\ElementInterface $owner, 
    ?\phpDocumentor\Reflection\Php\Property $php, 
    ?\phpDocumentor\Reflection\DocBlock\Tags\Property $tag
 ): 
Parameters
project \Klitsche\Dog\ProjectInterface
owner \Klitsche\Dog\Elements\ElementInterface
php ?\phpDocumentor\Reflection\Php\Property
tag ?\phpDocumentor\Reflection\DocBlock\Tags\Property

getData()

public getData ( 
    string $id
 ): mixed
Parameters
id string
Returns
mixed Null if data is not set

getDefault()

public getDefault (  ): ?string
Returns
?string

getDescription()

public getDescription (  ): ?string
Returns
?string

getDocBlock()

public getDocBlock (  ): ?\phpDocumentor\Reflection\DocBlock
Returns
?\phpDocumentor\Reflection\DocBlock

getElementType()

public getElementType (  ): string
Returns
string

getFile()

public getFile (  ): \Klitsche\Dog\Elements\File
Returns
\Klitsche\Dog\Elements\File

getFqsen()

public getFqsen (  ): \phpDocumentor\Reflection\Fqsen
Returns
\phpDocumentor\Reflection\Fqsen

getId()

public getId (  ): string
Returns
string

getLocation()

public getLocation (  ): ?\phpDocumentor\Reflection\Location
Returns
?\phpDocumentor\Reflection\Location

getName()

public getName (  ): ?string
Returns
?string

getNamespace()

public getNamespace (  ): \phpDocumentor\Reflection\Fqsen
Returns
\phpDocumentor\Reflection\Fqsen

getOwner()

public getOwner (  ): ?\Klitsche\Dog\Elements\ElementInterface
Returns
?\Klitsche\Dog\Elements\ElementInterface

getPhp()

public getPhp (  ): ?\phpDocumentor\Reflection\Php\Property
Returns
?\phpDocumentor\Reflection\Php\Property

getProject()

public getProject (  ): \Klitsche\Dog\ProjectInterface
Returns
\Klitsche\Dog\ProjectInterface

getTag()

public getTag (  ): ?\phpDocumentor\Reflection\DocBlock\Tags\Property
Returns
?\phpDocumentor\Reflection\DocBlock\Tags\Property

getType()

public getType (  ): ?\phpDocumentor\Reflection\Type
Returns
?\phpDocumentor\Reflection\Type

getVisibility()

public getVisibility (  ): ?\phpDocumentor\Reflection\Php\Visibility
Returns
?\phpDocumentor\Reflection\Php\Visibility

hasDocBlock()

public hasDocBlock (  ): bool
Returns
bool

hasTag()

public hasTag ( 
    string $name
 ): bool
Parameters
name string
Returns
bool

isInternal()

public isInternal (  ): bool
Returns
bool

isPrivate()

public isPrivate (  ): bool
Returns
bool

isProtected()

public isProtected (  ): bool
Returns
bool

isPublic()

public isPublic (  ): bool
Returns
bool

isStatic()

public isStatic (  ): bool
Returns
bool

setData()

public setData ( 
    string $id, 
    mixed $value
 ): void
Parameters
id string
value mixed

setProject()

public setProject ( 
    \Klitsche\Dog\ProjectInterface $project
 ): void
Parameters
project \Klitsche\Dog\ProjectInterface

Test Coverage ๐Ÿ’›

  • ๐Ÿ’› Lines: 85.71% (54 / 63)
  • ๐Ÿงก Methods: 56.25% (9 / 16)