/** * Constructor. * * @param ClassMetadata $metadata * @param GraphWalker $graphWalker * @param object $mergeFrom * @param object $mergeTo */ public function __construct(ClassMetadata $metadata, GraphWalker $graphWalker, $mergeFrom, $mergeTo) { $this->metadata = $metadata; $this->graphWalker = $graphWalker; $this->mergeFrom = $mergeFrom; $this->mergeTo = $mergeTo; $this->propertyAccessor = $graphWalker->getPropertyAccessorRegistry()->getPropertyAccessor($this->metadata->accessor); }
public function flushStack() { $this->graphWalker->flushStack(); }