lib/Yucca/Component/Source/PhpArray.php
public function load(array $identifier, $rawData, $shardingKey)
    {
        if (!self::$enabled) {
            throw new NoDataException(__CLASS__." is disabled");
        }
        $cacheKey = $this->getCacheKey($identifier);
        if (isset(static::$datas[$cacheKey])) {
            $datas = static::$datas[$cacheKey];

            if ($rawData) {
                return $datas;
            } else {
                return $this->dataParser->decode($datas, $this->configuration['fields']);
            }
        }

        throw new NoDataException("No datas found in cache for \"{$this->sourceName}\" with identifiers ".var_export($identifier, true));
    }
public function load(array $identifier, $rawData, $shardingKey)
    {
        if (!self::$enabled) {
            throw new NoDataException(__CLASS__." is disabled");
        }
        $cacheKey = $this->getCacheKey($identifier);
        if (isset(static::$datas[$cacheKey])) {
            $datas = static::$datas[$cacheKey];

            if ($rawData) {
                return $datas;
            } else {
                return $this->dataParser->decode($datas, $this->configuration['fields']);
            }
        }

        throw new NoDataException("No datas found in cache for \"{$this->sourceName}\" with identifiers ".var_export($identifier, true));
    }
@param array $identifier
@param bool  $rawData
@param mixed $shardingKey

@return array
@throws NoDataException
@throws \Exception