protected function getRelationsArray(array $relations): array
    {
        $relationsArray = [];
        foreach ($relations as $relation) {
            $key = $relation->getName();

            $relationsArray[$key] = (new self($relation->getJory(), $this->minified))->get();
        }

        return $relationsArray;
    }
protected function getRelationsArray(array $relations): array
    {
        $relationsArray = [];
        foreach ($relations as $relation) {
            $key = $relation->getName();

            $relationsArray[$key] = (new self($relation->getJory(), $this->minified))->get();
        }

        return $relationsArray;
    }
protected function getRelationsArray ( array $ relations ) : array { $ relationsArray = [ ] ; foreach ( $ relations as $ relation ) { $ key = $ relation -> getName ( ) ; $ relationsArray [ $ key ] = ( new self ( $ relation -> getJory ( ) , $ this -> minified ) ) -> get ( ) ; } return $ relationsArray ; }
Turn an array of relation objects into an array.

@param array $relations
@return array
Turn an array of relation objects into an array .