public function splice($parentKey)
    {
        // Get all the descendant keys
        $keys = $this->descendantsOf($parentKey);

        // Cool, we have a list of keys, now let's get the associated params
        $params = $this->allParamsFor($keys); // That was hard

        return new static(
            $keys,
            $params
        );
    }
public function splice($parentKey)
    {
        // Get all the descendant keys
        $keys = $this->descendantsOf($parentKey);

        // Cool, we have a list of keys, now let's get the associated params
        $params = $this->allParamsFor($keys); // That was hard

        return new static(
            $keys,
            $params
        );
    }
public function splice ( $ parentKey ) { // Get all the descendant keys $ keys = $ this -> descendantsOf ( $ parentKey ) ; // Cool, we have a list of keys, now let's get the associated params $ params = $ this -> allParamsFor ( $ keys ) ; // That was hard return new static ( $ keys , $ params ) ; }
Returns a new Includes object containing all keys spliced below the given parent key,
as well as any mapped params.

@param string $parentKey

@return static

@see Includes::descendantsOf()
@see Includes::allParamsFor()
Returns a new Includes object containing all keys spliced below the given parent key as well as any mapped params .