public function normalizeKeys($keys)
    {
        if ($keys === true) {
            $keys = $this->keys();
        }

        if (empty($keys)) {
            return [];
        }

        return $this->_normalizeAssociations($keys);
    }
public function normalizeKeys($keys)
    {
        if ($keys === true) {
            $keys = $this->keys();
        }

        if (empty($keys)) {
            return [];
        }

        return $this->_normalizeAssociations($keys);
    }
public function normalizeKeys ( $ keys ) { if ( $ keys === true ) { $ keys = $ this -> keys ( ) ; } if ( empty ( $ keys ) ) { return [ ] ; } return $ this -> _normalizeAssociations ( $ keys ) ; }
Returns an associative array of association names out a mixed
array. If true is passed, then it returns all association names
in this collection.

@param bool|array $keys the list of association names to normalize
@return array
Returns an associative array of association names out a mixed array . If true is passed then it returns all association names in this collection .