public function getConstructorParams($class)
    {
        $cacheKey = self::CACHE_KEY_CTOR_PARAMS . strtolower($class);

        $reflectedConstructorParams = $this->cache->fetch($cacheKey);

        if (false !== $reflectedConstructorParams) {
            return $reflectedConstructorParams;
        } elseif ($reflectedConstructor = $this->getConstructor($class)) {
            $reflectedConstructorParams = $reflectedConstructor->getParameters();
        } else {
            $reflectedConstructorParams = null;
        }

        $this->cache->store($cacheKey, $reflectedConstructorParams);

        return $reflectedConstructorParams;
    }
public function getConstructorParams($class)
    {
        $cacheKey = self::CACHE_KEY_CTOR_PARAMS . strtolower($class);

        $reflectedConstructorParams = $this->cache->fetch($cacheKey);

        if (false !== $reflectedConstructorParams) {
            return $reflectedConstructorParams;
        } elseif ($reflectedConstructor = $this->getConstructor($class)) {
            $reflectedConstructorParams = $reflectedConstructor->getParameters();
        } else {
            $reflectedConstructorParams = null;
        }

        $this->cache->store($cacheKey, $reflectedConstructorParams);

        return $reflectedConstructorParams;
    }
public function getConstructorParams ( $ class ) { $ cacheKey = self :: CACHE_KEY_CTOR_PARAMS . strtolower ( $ class ) ; $ reflectedConstructorParams = $ this -> cache -> fetch ( $ cacheKey ) ; if ( false !== $ reflectedConstructorParams ) { return $ reflectedConstructorParams ; } elseif ( $ reflectedConstructor = $ this -> getConstructor ( $ class ) ) { $ reflectedConstructorParams = $ reflectedConstructor -> getParameters ( ) ; } else { $ reflectedConstructorParams = null ; } $ this -> cache -> store ( $ cacheKey , $ reflectedConstructorParams ) ; return $ reflectedConstructorParams ; }
Retrieves and caches an array of constructor parameters for the given class.

@since 0.3.0

@param string $class Class name to retrieve the constructor arguments from.

@return ReflectionParameter[] Array of ReflectionParameter objects for the given class' constructor.
Retrieves and caches an array of constructor parameters for the given class .