@param $key

@return Node|null
346559
public function getLastByKey($key)
    {
        if ($this->key == $key) return $this;

        return $this->children->getLastByKey($key);
    }
1009545
public function get($key)
    {
        if (!isset($this->records[$key])) {
            return null;
        }

        $record = $this->records[$key];

        if ($record['expire'] < time()) {
            unset($this->records[$key]);

            return null;
        }

        return $record['nodes'];
    }
980380
public function annotation($key)
    {
        return isset($this->annotations[$key])
            ? $this->annotations[$key]
            : null;
    }
1110655
public static function pull(string $key)
  {
    if (Self::has($key)) {
      $value = Self::get($key);
      Self::forget($key);

      return $value;
    }

    return null;
  }
512617
private function getChild($key)
    {
        $top = $this->params;

        foreach (explode($this->delimiter, $key) as $node) {
            if (!isset($top[$node])) {
                return null;
            }
            $top = $top[$node];
        }
        return $top;
    }
1357827
public function getMenu($key)
	{
		if (strpos($key, '.') !== false) {
			return $this->getNested($key);
		}

		return array_key_exists($key, $this->menus) ? $this->menus[$key] : null;
	}
331756
public function addChild(string $key) : NodePath
    {
        $path = $this->path;
        $path[] = $key;
        return new NodePath($path);
    }
22011
public function item($key)
	{
		if ( ! isset($this->info['items'][$key]))
		{
			return null;
		}

		return $this->info['items'][$key];
	}
938525
public function get($key)
    {
        if (array_key_exists($key, $this->_map)) {
            return $this->_map[$key];
        }

        return null;

    }
297813
public function get(string $key)
    {
        $key = $this->hashKey($key);
        if (\array_key_exists($key, $this->cache)) {
            $this->hits++;
            return $this->cache[$key];
        }
        $this->misses++;
        return null;
    }
139158
protected function get($key)
    {
        return isset($this->errors[$key]) ? $this->errors[$key] : null;
    }
239120
public function nodeValue($key)
    {
        if (!isset($this->keyToIndexMap[$key]) || !$this->values[$this->keyToIndexMap[$key]] instanceof Node) {
            throw new \InvalidArgumentException(sprintf('value for %s is not of type %s', $key, 'NODE'));
        }

        return $this->value($key);
    }
665904
public function get($key = null)
    {
        if (null === $key) {
            return $this->get;
        }

        return isset($this->get[$key]) ? $this->get[$key] : null;
    }
1359939
public function find($key)
  {
    if ($this->isSentinel())
    {
      return NULL;
    }

    if ($this->key == $key)
    {
      return $this->value;
    }

    return $this->tail->find($key);
  }
650115
public function retrieve(string $key)
    {
        $token = null;

        $storageInstance = $this->getRepository();

        $token = $storageInstance->{$key}?? null;

        return $token;
    }
629976
protected function &getNode(&$node, $key)
    {
        if (is_object($node) && isset($node->$key)) {
            return $node->$key;
        }

        if (is_array($node) && isset($node[$key])) {
            return $node[$key];
        }

        // Special handling of eloquent relations
        if (!$this->isEloquentModel($node)) {
            $result = null;

            return $result;
        }

        if (!method_exists($node, $key)) {
            $result = null;

            return $result;
        }

        $relation = $node->{$key}();

        if (!$this->isEloquentRelation($relation)) {
            $result = null;

            return $result;
        }

        return $relation->getResults();
    }
1184537
public function def($key = null)
    {
        if ($key) return isset($this->definition[$key]) ? $this->definition[$key] : null;
        else return $this->definition;
    }