src/Perry/Representation/Eve/v1/TournamentStaticSceneData.php
public function setGlobalObjects($globalObjects)
    {
        // by Warringer\Types\Dict
        $converters = [];
        $converters['name'] = function ($value) { return $value; };
        $converters['planetOrMoonInfo'] = function ($value) { return $value; };
        $converters['y'] = function ($value) { return $value; };
        $converters['x'] = function ($value) { return $value; };
        $converters['z'] = function ($value) { return $value; };
        $converters['type'] = function ($value) { return new Reference($value); };

        $func = function ($value) use($converters) {
            $return = new \ArrayObject($value, \ArrayObject::ARRAY_AS_PROPS);
            $return['name'] = isset($value->{'name'}) ? $converters['name']($value->{'name'}) : null;
            $return['planetOrMoonInfo'] = isset($value->{'planetOrMoonInfo'}) ? $converters['planetOrMoonInfo']($value->{'planetOrMoonInfo'}) : null;
            $return['y'] = isset($value->{'y'}) ? $converters['y']($value->{'y'}) : null;
            $return['x'] = isset($value->{'x'}) ? $converters['x']($value->{'x'}) : null;
            $return['z'] = isset($value->{'z'}) ? $converters['z']($value->{'z'}) : null;
            $return['type'] = isset($value->{'type'}) ? $converters['type']($value->{'type'}) : null;
            return $return;
        };

        foreach ($globalObjects as $key => $value) {
            $this->globalObjects[$key] = $func($value);
        }
    }
public function setGlobalObjects($globalObjects)
    {
        // by Warringer\Types\Dict
        $converters = [];
        $converters['name'] = function ($value) { return $value; };
        $converters['planetOrMoonInfo'] = function ($value) { return $value; };
        $converters['y'] = function ($value) { return $value; };
        $converters['x'] = function ($value) { return $value; };
        $converters['z'] = function ($value) { return $value; };
        $converters['type'] = function ($value) { return new Reference($value); };

        $func = function ($value) use($converters) {
            $return = new \ArrayObject($value, \ArrayObject::ARRAY_AS_PROPS);
            $return['name'] = isset($value->{'name'}) ? $converters['name']($value->{'name'}) : null;
            $return['planetOrMoonInfo'] = isset($value->{'planetOrMoonInfo'}) ? $converters['planetOrMoonInfo']($value->{'planetOrMoonInfo'}) : null;
            $return['y'] = isset($value->{'y'}) ? $converters['y']($value->{'y'}) : null;
            $return['x'] = isset($value->{'x'}) ? $converters['x']($value->{'x'}) : null;
            $return['z'] = isset($value->{'z'}) ? $converters['z']($value->{'z'}) : null;
            $return['type'] = isset($value->{'type'}) ? $converters['type']($value->{'type'}) : null;
            return $return;
        };

        foreach ($globalObjects as $key => $value) {
            $this->globalObjects[$key] = $func($value);
        }
    }
by Warringer\Types\ArrayType