Zephir\ClassMethod::__construct PHP Method

__construct() public method

ClassMethod constructor
public __construct ( ClassDefinition $classDefinition, array $visibility, $name, $parameters, zephir\StatementsBlock $statements = null, null $docblock = null, null $returnType = null, array $original = null )
$classDefinition ClassDefinition
$visibility array
$name
$parameters
$statements zephir\StatementsBlock
$docblock null
$returnType null
$original array
    public function __construct(ClassDefinition $classDefinition, array $visibility, $name, $parameters, StatementsBlock $statements = null, $docblock = null, $returnType = null, array $original = null)
    {
        $this->checkVisibility($visibility, $name, $original);
        $this->classDefinition = $classDefinition;
        $this->visibility = $visibility;
        $this->name = $name;
        $this->parameters = $parameters;
        $this->statements = $statements;
        $this->docblock = $docblock;
        $this->expression = $original;
        $this->setReturnTypes($returnType);
    }