@param string $id

@return AccessTokenInterface
171579
public function setId($id)
    {
        if (!empty($id) && is_string($id) && ctype_print($id)) {
            $this->id = trim($id);
        }

        return $this;
    }
1193213
public function setHandler($id)
    {
        if (is_string($id)) {
            $this->handler = $this->file->getHandler($id);
        } else {
            $this->handler = $id;
        }

        return $this;
    }
99464
public function offsetGet($id)
    {
        if (!array_key_exists($id, $this->container)) {
            throw new InvalidArgumentException(sprintf('Identifier "%s" is not defined.', $id));
        }

        return $this->container[$id] instanceof Closure ? $this->container[$id]($this) : $this->container[$id];
    }
1312534
public function withAnyMetaId($id)
	{
		$filters = array();
		
		foreach (func_get_args() as $arg) {
			$arg = (array) $arg;
			
			foreach ($arg as $meta_id) {
				$filters[] = array('id' => $m->id);
			}
		}
		
		$this->filters[]['metas'] = $filters;
		
		return $this;
	}
296471
public static function convertKey($id)
    {
        if (is_string($id) && strlen($id) === 24 && ctype_xdigit($id)) {
            return new ObjectID($id);
        }

        return $id;
    }
629826
public function get(string $id)
    {
        if (!$this->has($id)) {
            throw EntryNotFoundException::fromId($id);
        }

        return $this->cache[$id];
    }
867098
protected function handleDomain(&$id) {
		if ($this->idDelimiter === null) {
			return $this->domain;
		}
		
		$delimiterPos = strpos($id, $this->idDelimiter);
		
		if ($delimiterPos === false) {
			return $this->domain;
		}
		
		$domain = substr($id, 0, $delimiterPos);
		$id     = substr($id, $delimiterPos + 1);
		
		return $domain;
	}
855252
public function setId($id): AbstractCompany
    {
        if ('' == $id) {
            return $this;
        }
        $this->id = intval($id);

        return $this;
    }
312589
protected function getPayload($id)
    {
        $rawPayload = $this->getRedis()->hget($this->getRedisJobNamespace(), $id);

        return static::parsePayload($rawPayload);
    }
471455
protected function prepareId($id) {
		if (! is_scalar($id)) {
			$id = json_encode($id);
			
			if (isset($id[33])) {
				$id = md5($id);
			}
		}
		
		if ($this->namespace === null) {
			return $id;
		}
		
		return $this->namespace . '_' . $id;
	}
119126
public function onceUsingId($id)
    {
        $user = $this->provider->retrieveById($id);

        $this->setUser($user);

        return ($user instanceof UserInterface);
    }
108939
public function setId($id)
    {
        $id = $this->buildId($id);

        if ($this->isRelation($id)) {
            $relations = explode('.', $id);

            $lastElement = array_pop($relations);

            if (!$this->keepOriginalID) {
                $id = $lastElement;
            }

            $this->relations = $relations;
        }

        $this->id = $id;

        return $this;
    }
106482
public static function factory($id)
    {
        $id = (string)$id;
        if (!isset(static::$permissions[$id])) {
            static::$permissions[$id] = new static($id);
        }
        return static::$permissions[$id];
    }
1299057
public function setId($id = null)
    {
        $this->id = ($id !== null) ? $id : SecureKey::generate();

        return $this;
    }
745094
public function getPermissionForId($id)
    {
        $permission = $this->permissionsDataSource->getPermissionForId($id);
        
        if ($permission instanceof \Zepi\Core\AccessControl\Entity\Permission) {
            $accessEntity = $this->getAccessEntityForUuid($permission->getAccessEntityClass(), $permission->getAccessEntityUuid());
            
            if ($accessEntity instanceof \Zepi\Core\AccessControl\Entity\AccessEntity) {
                $permission->setAccessEntity($accessEntity);
            }
        }
        
        return $permission;
    }
161581
public static function one($id)
	{
		$instance = self::blank();
		return $instance->whereEquals($instance->getPrimaryKey(), $id)->rows()->seek($id);
	}
74103
public function getById($id)
    {
        $snapshot = $this->adapter->get(sprintf('%s/snapshots/%s', $this->endpoint, $id));

        $snapshot = json_decode($snapshot);

        return new SnapshotEntity($snapshot->snapshot);
    }