Skip to content

Class Argument

Class \Klitsche\Dog\Elements\Argument

Methods

__construct()

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

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

getFile()

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

getId()

public getId (  ): string
Returns
string

getLocation()

public getLocation (  ): mixed
Returns
mixed

getName()

public getName (  ): ?string
Returns
?string

getOwner()

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

getPhp()

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

getTag()

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

getType()

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

isByReference()

public isByReference (  ): bool
Returns
bool

isVariadic()

public isVariadic (  ): bool
Returns
bool

setData()

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

Test Coverage 💛

  • 💛 Lines: 77.14% (27 / 35)
  • ❤️ Methods: 38.46% (5 / 13)