file-fetcher
Public Member Functions | List of all members
Prophecy\Doubler\Generator\Node\ClassNode Class Reference

Detailed Description

Class node.

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

Public Member Functions

 getParentClass ()
 
 setParentClass ($class)
 
 getInterfaces ()
 
 addInterface ($interface)
 
 hasInterface ($interface)
 
 getProperties ()
 
 addProperty ($name, $visibility='public')
 
 getMethods ()
 
 addMethod (MethodNode $method, $force=false)
 
 removeMethod ($name)
 
 getMethod ($name)
 
 hasMethod ($name)
 
 getUnextendableMethods ()
 
 addUnextendableMethod ($unextendableMethod)
 
 isExtendable ($method)
 

Member Function Documentation

◆ addInterface()

Prophecy\Doubler\Generator\Node\ClassNode::addInterface (   $interface)
Parameters
string$interface

◆ addMethod()

Prophecy\Doubler\Generator\Node\ClassNode::addMethod ( MethodNode  $method,
  $force = false 
)

◆ addProperty()

Prophecy\Doubler\Generator\Node\ClassNode::addProperty (   $name,
  $visibility = 'public' 
)

◆ addUnextendableMethod()

Prophecy\Doubler\Generator\Node\ClassNode::addUnextendableMethod (   $unextendableMethod)
Parameters
string$unextendableMethod

◆ getInterfaces()

Prophecy\Doubler\Generator\Node\ClassNode::getInterfaces ( )
Returns
string[]

◆ getMethod()

Prophecy\Doubler\Generator\Node\ClassNode::getMethod (   $name)
Parameters
string$name
Returns
MethodNode|null

◆ getMethods()

Prophecy\Doubler\Generator\Node\ClassNode::getMethods ( )
Returns
MethodNode[]

◆ getParentClass()

Prophecy\Doubler\Generator\Node\ClassNode::getParentClass ( )

◆ getProperties()

Prophecy\Doubler\Generator\Node\ClassNode::getProperties ( )

◆ getUnextendableMethods()

Prophecy\Doubler\Generator\Node\ClassNode::getUnextendableMethods ( )
Returns
string[]

◆ hasInterface()

Prophecy\Doubler\Generator\Node\ClassNode::hasInterface (   $interface)
Parameters
string$interface
Returns
bool

◆ hasMethod()

Prophecy\Doubler\Generator\Node\ClassNode::hasMethod (   $name)
Parameters
string$name
Returns
bool

◆ isExtendable()

Prophecy\Doubler\Generator\Node\ClassNode::isExtendable (   $method)
Parameters
string$method
Returns
bool

◆ removeMethod()

Prophecy\Doubler\Generator\Node\ClassNode::removeMethod (   $name)

◆ setParentClass()

Prophecy\Doubler\Generator\Node\ClassNode::setParentClass (   $class)
Parameters
string$class

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