for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace WebinoDomLib\Dom;
/**
* Class LocatorAwareTrait
*/
trait LocatorAwareTrait
{
* @var Locator
private $locator;
* @return Locator
protected function getLocator()
if (null === $this->locator) {
$this->setLocator(new Locator);
}
return $this->locator;
* @param Locator $locator
* @return $this
public function setLocator(Locator $locator)
$this->locator = $locator;
return $this;