src/Mock/Builder/MockBuilder.php
public function addStaticProperty(string $name, $value = null): self
    {
        if ($this->isFinalized) {
            throw new FinalizedMockException();
        }

        $this->customStaticProperties[$name] = $value;

        return $this;
    }
public function addStaticProperty(string $name, $value = null): self
    {
        if ($this->isFinalized) {
            throw new FinalizedMockException();
        }

        $this->customStaticProperties[$name] = $value;

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

@param string $name  The name.
@param mixed  $value The value.

@return $this         This builder.
@throws MockException If this builder is already finalized.
Add a custom static property .