src/Mock/Builder/MockBuilder.php
public function finalize(): self
    {
        if (!$this->isFinalized) {
            $this->normalizeDefinition();
            $this->isFinalized = true;
            $this->definition = new MockDefinition(
                $this->types,
                $this->customMethods,
                $this->customProperties,
                $this->customStaticMethods,
                $this->customStaticProperties,
                $this->customConstants,
                $this->className
            );
        }

        return $this;
    }
public function finalize(): self
    {
        if (!$this->isFinalized) {
            $this->normalizeDefinition();
            $this->isFinalized = true;
            $this->definition = new MockDefinition(
                $this->types,
                $this->customMethods,
                $this->customProperties,
                $this->customStaticMethods,
                $this->customStaticProperties,
                $this->customConstants,
                $this->className
            );
        }

        return $this;
    }
public function finalize ( ) : self { if ( ! $ this -> isFinalized ) { $ this -> normalizeDefinition ( ) ; $ this -> isFinalized = true ; $ this -> definition = new MockDefinition ( $ this -> types , $ this -> customMethods , $ this -> customProperties , $ this -> customStaticMethods , $ this -> customStaticProperties , $ this -> customConstants , $ this -> className ) ; } return $ this ; }
Finalize the mock builder.

@return $this This builder.
Finalize the mock builder .