Lggr
Public Member Functions | List of all members
Prophecy\Doubler\Generator\Node\MethodNode Class Reference

Public Member Functions

 __construct ($name, $code=null, TypeHintReference $typeHintReference=null)
 
 getVisibility ()
 
 setVisibility ($visibility)
 
 isStatic ()
 
 setStatic ($static=true)
 
 returnsReference ()
 
 setReturnsReference ()
 
 getName ()
 
 addArgument (ArgumentNode $argument)
 
 getArguments ()
 
 hasReturnType ()
 
 setReturnType ($type=null)
 
 getReturnType ()
 
 setNullableReturnType ($bool=true)
 
 hasNullableReturnType ()
 
 setCode ($code)
 
 getCode ()
 
 useParentCode ()
 

Detailed Description

Method node.

Author
Konstantin Kudryashov ever..nosp@m.zet@.nosp@m.gmail.nosp@m..com

Constructor & Destructor Documentation

◆ __construct()

Prophecy\Doubler\Generator\Node\MethodNode::__construct (   $name,
  $code = null,
TypeHintReference  $typeHintReference = null 
)
Parameters
string$name
string$code

Member Function Documentation

◆ getArguments()

Prophecy\Doubler\Generator\Node\MethodNode::getArguments ( )
Returns
ArgumentNode[]

◆ hasNullableReturnType()

Prophecy\Doubler\Generator\Node\MethodNode::hasNullableReturnType ( )
Returns
bool

◆ setCode()

Prophecy\Doubler\Generator\Node\MethodNode::setCode (   $code)
Parameters
string$code

◆ setNullableReturnType()

Prophecy\Doubler\Generator\Node\MethodNode::setNullableReturnType (   $bool = true)
Parameters
bool$bool

◆ setReturnType()

Prophecy\Doubler\Generator\Node\MethodNode::setReturnType (   $type = null)
Parameters
string$type

◆ setVisibility()

Prophecy\Doubler\Generator\Node\MethodNode::setVisibility (   $visibility)
Parameters
string$visibility

The documentation for this class was generated from the following file: