public function getTag() { if ($this->_tag === null) { $this->_tag = uniqid(); } return $this->_tag; }
/** * @param Yii2Debug $owner * @param string $id */ public function __construct($owner, $id) { $this->_owner = $owner; $this->_id = $id; $this->_tag = $owner->getTag(); }