private function filterByKeys(array $keys)
    {
        $results = [];

        foreach ($this->items as $key => $value) {
            if (!in_array($key, $keys)) {
                continue;
            }

            $results[$key] = $value;
        }

        return $results;
    }
private function filterByKeys(array $keys)
    {
        $results = [];

        foreach ($this->items as $key => $value) {
            if (!in_array($key, $keys)) {
                continue;
            }

            $results[$key] = $value;
        }

        return $results;
    }
private function filterByKeys ( array $ keys ) { $ results = [ ] ; foreach ( $ this -> items as $ key => $ value ) { if ( ! in_array ( $ key , $ keys ) ) { continue ; } $ results [ $ key ] = $ value ; } return $ results ; }
Filter items by key name.

@param array $keys

@return array
Filter items by key name .