public static function get($key) { $lock = new self(); $lock->getById($key); return $lock; }
/** * @return mixed */ public function getLastExecution() { $lock = Model\Tool\Lock::get($this->_pidFileName); if ($date = $lock->getDate()) { return $date; } return; }