You are here

public function ClassCreator::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassCreator.php \Prophecy\Doubler\Generator\ClassCreator::__construct()

Initializes creator.

Parameters

ClassCodeGenerator $generator:

File

vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassCreator.php, line 31

Class

ClassCreator
Class creator. Creates specific class in current environment.

Namespace

Prophecy\Doubler\Generator

Code

public function __construct(ClassCodeGenerator $generator = null) {
  $this->generator = $generator ?: new ClassCodeGenerator();
}