You are here

public function ObjectProphecy::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php \Prophecy\Prophecy\ObjectProphecy::__construct()

Initializes object prophecy.

Parameters

LazyDouble $lazyDouble:

CallCenter $callCenter:

RevealerInterface $revealer:

ComparatorFactory $comparatorFactory:

File

vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php, line 50

Class

ObjectProphecy
Object prophecy.

Namespace

Prophecy\Prophecy

Code

public function __construct(LazyDouble $lazyDouble, CallCenter $callCenter = null, RevealerInterface $revealer = null, ComparatorFactory $comparatorFactory = null) {
  $this->lazyDouble = $lazyDouble;
  $this->callCenter = $callCenter ?: new CallCenter();
  $this->revealer = $revealer ?: new Revealer();
  $this->comparatorFactory = $comparatorFactory ?: ComparatorFactory::getInstance();
}