src/Perry/Representation/Eve/v2/ItemType.php
public function setAttributes($attributes)
    {
        // by Warringer\Types\Dict
        $converters = [];
        $converters['cpu'] = function ($value) { return $value; };
        $converters['power'] = function ($value) { return $value; };
        $converters['heatDamage'] = function ($value) { return $value; };

        $func = function ($value) use($converters) {
            $return = new \ArrayObject($value, \ArrayObject::ARRAY_AS_PROPS);
            $return['cpu'] = isset($value->{'cpu'}) ? $converters['cpu']($value->{'cpu'}) : null;
            $return['power'] = isset($value->{'power'}) ? $converters['power']($value->{'power'}) : null;
            $return['heatDamage'] = isset($value->{'heatDamage'}) ? $converters['heatDamage']($value->{'heatDamage'}) : null;
            return $return;
        };
        $this->attributes = $func($attributes);
    }
public function setAttributes($attributes)
    {
        // by Warringer\Types\Dict
        $converters = [];
        $converters['cpu'] = function ($value) { return $value; };
        $converters['power'] = function ($value) { return $value; };
        $converters['heatDamage'] = function ($value) { return $value; };

        $func = function ($value) use($converters) {
            $return = new \ArrayObject($value, \ArrayObject::ARRAY_AS_PROPS);
            $return['cpu'] = isset($value->{'cpu'}) ? $converters['cpu']($value->{'cpu'}) : null;
            $return['power'] = isset($value->{'power'}) ? $converters['power']($value->{'power'}) : null;
            $return['heatDamage'] = isset($value->{'heatDamage'}) ? $converters['heatDamage']($value->{'heatDamage'}) : null;
            return $return;
        };
        $this->attributes = $func($attributes);
    }
by Warringer\Types\Dict