public function getId($readable = false) { if ($readable) { $output = "machine: '" . $this->getMachine() . "', id: '" . $this->getEntityId() . "'"; } else { $output = $this->getMachine() . "_" . $this->getEntityId(); } return $output; }
public function isPersisted(Identifier $identifier) { $key = $identifier->getId(); if (!isset($_SESSION[$this->namespace][$key])) { return false; } return true; }