Find data at key

@param array|string $key

@return array
967447
public function find($storageName, $key)
    {
        if (!isset($this->data[$storageName])) {
            throw new NotFoundException();
        }

        if (!isset($this->data[$storageName][serialize($key)])) {
            throw new NotFoundException();
        }

        unset($this->data[$storageName][serialize($key)]);
    }
725540
public function getAsArray($key)
    {
        if (! $this->has($key)) {
            return [];
        }
        $res = $this->attributes[$key];
        if (is_null($res)) {
            return [null];
        }

        return (array) $res;
    }
141863
public function find(string $key)
    {
        $founded = array_key_exists($key, $this->map);

        if ($founded === false) {
            return null;
        }

        return $this->map[$key];
    }
1164031
public function map(string $key, array $data): array
    {
        $fields = $this->map[$key] ?? null;
        if (empty($fields) || empty($data)) {
            return $data;
        }

        foreach ($fields as $fieldName => $fieldProperties) {
            foreach ($data as &$dat) {
                foreach ($dat as $name => $value) {
                    if ($name == $fieldName) { // match field?
                        if (is_array($dat)) {
                            $dat[$name] = $this->cast($value, $fieldProperties);
                        } elseif (is_object($dat)) {
                            $dat->{$name} = $this->cast($value, $fieldProperties);
                        }
                    }
                }
            }
        }

        return $data;
    }
692182
public function getArray($key = null) {
        if (!is_null($key)) {
            return $this->getDeepValue($key);
        } else {
            return $this->_data;
        }
    }
1308804
public function get($key) {
		$row = $this->db->dal()->from($this->getTable())->where('key', $key)->first();
		if(isset($row['value'])) {
			$res = unserialize($row['value']);
			if(isset($res['_dataType']) && isset($res['input']))
				return $this->types[$res['_dataType']][1]($res['input']);
			else
				return $res;
		}
	}
1285738
public function find($key)
    {
        if (isset($this->payload[$key])) {
            return $this->payload[$key];
        }

        return null;
    }
534465
public function getData ($key)
    {
        if (!array_key_exists($key, $this->data))
        {
            throw new \InvalidArgumentException(sprintf("Can't find gluggi data with key '%s'.", $key));
        }

        return $this->data[$key];
    }
422863
public function get($key)
    {
        if (empty($this->data[$key]) === true) {
            return null;
        }

        return $this->data[$key];
    }
1321269
public function getAll(string $key): array
    {
        $filter = static function (array $pair) use ($key): bool {
            return $key === $pair[0];
        };

        return array_column(array_filter($this->pairs, $filter), 1);
    }
1039255
protected function getData($key)
    {
        $cacheKey = $this->key($key);
        return array_key_exists($cacheKey, $this->cache)?$this->cache[$this->key($key)]:false;
    }
920880
public function find($key)
    {
        $path = $this->finder->find($name);

        if ($path && !in_array($path, $this->paths)) {
            array_unshift($this->paths, $path);
        }

        return parent::find($name);
    }
1334829
public function offsetGet($key) {
		$key = strtolower($key);
		return isset($this->data[$key]) ? $this->data[$key] : null;
	}
1065160
public function get( $key )
	{
		if ( isset($this->getData[ $key ]) )
		{
			return $this->getData[ $key ];
		}
		else
		{
			return null;
		}
	}
966751
protected function getValuesFromKeyMap( $key )
    {
        if ( empty( $key ) || empty( $this->keyMap[$key] ) )
        {
            return null;
        }

        return $this->keyMap[$key];
    }
1245180
public function get($key)
    {
        $file = $this->getFilePath($key);

        if (file_exists($file)) {
            $data = file_get_contents($file);

            if (!empty($data)) {
                return $data;
            }
        }

        return false;
    }
1218576
public function get($key)
    {
        $res = $this->_errors[$key];
        if (!is_array($res)) {
            return [$res];
        }

        return $res;
    }