Eloquent\Phony\Mock\Builder\Method\RealMethodDefinition::__construct PHP Method

__construct() public method

Construct a new real method definition.
public __construct ( ReflectionMethod $method, string $name )
$method ReflectionMethod The method.
$name string The name.
    public function __construct(ReflectionMethod $method, $name)
    {
        $this->method = $method;
        $this->name = $name;
        $this->isCallable = !$this->method->isAbstract();
        $this->isStatic = $this->method->isStatic();
        if ($this->method->isPublic()) {
            $this->accessLevel = 'public';
        } else {
            $this->accessLevel = 'protected';
        }
    }