Util/Partial/ScopeTrait.php
<?php
namespace Phug\Util\Partial;
/**
* Class BlockTrait.
*/
trait ScopeTrait
{
/**
* @var string
*/
private $scopeId = null;
/**
* {@inheritdoc}
*/
public function setScope($object)
{
$this->scopeId = is_object($object) ? spl_object_hash($object) : null;
return $this;
}
/**
* {@inheritdoc}
*/
public function getScopeId()
{
return $this->scopeId;
}
}