public function setTokens(array $tokens) { $this->startLine = reset($tokens)->startLine; $this->endLine = end($tokens)->endLine; $this->cache->type('tokens')->store($this->id, $tokens); }