Eloquent\Phony\Mock\Builder\MockBuilder::addStaticProperty PHP Method

addStaticProperty() public method

Add a custom static property.
public addStaticProperty ( string $name, mixed $value = null )
$name string The name.
$value mixed The value.
    public function addStaticProperty($name, $value = null)
    {
        if ($this->isFinalized) {
            throw new FinalizedMockException();
        }
        $this->customStaticProperties[$name] = $value;
        return $this;
    }