Пример #1
0
 /**
  * @param ProjectValidatorGenerator|null $generator
  * @param Isolator|null                  $isolator
  */
 public function __construct(ProjectValidatorGenerator $generator = null, Isolator $isolator = null)
 {
     $this->typeCheck = TypeCheck::get(__CLASS__, func_get_args());
     if (null === $generator) {
         $generator = new ProjectValidatorGenerator();
     }
     $this->generator = $generator;
     parent::__construct($isolator);
 }
Пример #2
0
 /**
  * @param ProjectAnalyzer|null $analyzer
  * @param IssueRenderer|null   $issueRenderer
  * @param Isolator|null        $isolator
  */
 public function __construct(ProjectAnalyzer $analyzer = null, IssueRenderer $issueRenderer = null, Isolator $isolator = null)
 {
     $this->typeCheck = TypeCheck::get(__CLASS__, func_get_args());
     if (null === $analyzer) {
         $analyzer = new ProjectAnalyzer();
     }
     if (null === $issueRenderer) {
         $issueRenderer = new IssueRenderer();
     }
     $this->analyzer = $analyzer;
     $this->issueRenderer = $issueRenderer;
     parent::__construct($isolator);
 }