src/Perry/Representation/Eve/v1/Killmail.php
public function setAttackers($attackers)
    {
        // by Warringer\Types\Base
        $converters = [];
        $converters['alliance'] = function ($value) { return new Reference($value); };
        $converters['shipType'] = function ($value) { return new Reference($value); };
        $converters['faction'] = function ($value) { return new Reference($value); };
        $converters['corporation'] = function ($value) { return new Reference($value); };
        $converters['character'] = function ($value) { return new Reference($value); };
        $converters['weaponType'] = function ($value) { return new Reference($value); };
        $converters['finalBlow'] = function ($value) { return $value; };
        $converters['securityStatus'] = function ($value) { return $value; };
        $converters['damageDone'] = function ($value) { return $value; };

        $func = function ($value) use($converters) {
            $return = new \ArrayObject($value, \ArrayObject::ARRAY_AS_PROPS);
            $return['alliance'] = isset($value->{'alliance'}) ? $converters['alliance']($value->{'alliance'}) : null;
            $return['shipType'] = isset($value->{'shipType'}) ? $converters['shipType']($value->{'shipType'}) : null;
            $return['faction'] = isset($value->{'faction'}) ? $converters['faction']($value->{'faction'}) : null;
            $return['corporation'] = isset($value->{'corporation'}) ? $converters['corporation']($value->{'corporation'}) : null;
            $return['character'] = isset($value->{'character'}) ? $converters['character']($value->{'character'}) : null;
            $return['weaponType'] = isset($value->{'weaponType'}) ? $converters['weaponType']($value->{'weaponType'}) : null;
            $return['finalBlow'] = isset($value->{'finalBlow'}) ? $converters['finalBlow']($value->{'finalBlow'}) : null;
            $return['securityStatus'] = isset($value->{'securityStatus'}) ? $converters['securityStatus']($value->{'securityStatus'}) : null;
            $return['damageDone'] = isset($value->{'damageDone'}) ? $converters['damageDone']($value->{'damageDone'}) : null;
            return $return;
        };

        foreach ($attackers as $key => $value) {
            $this->attackers[$key] = $func($value);
        }
    }
public function setAttackers($attackers)
    {
        // by Warringer\Types\Base
        $converters = [];
        $converters['alliance'] = function ($value) { return new Reference($value); };
        $converters['shipType'] = function ($value) { return new Reference($value); };
        $converters['faction'] = function ($value) { return new Reference($value); };
        $converters['corporation'] = function ($value) { return new Reference($value); };
        $converters['character'] = function ($value) { return new Reference($value); };
        $converters['weaponType'] = function ($value) { return new Reference($value); };
        $converters['finalBlow'] = function ($value) { return $value; };
        $converters['securityStatus'] = function ($value) { return $value; };
        $converters['damageDone'] = function ($value) { return $value; };

        $func = function ($value) use($converters) {
            $return = new \ArrayObject($value, \ArrayObject::ARRAY_AS_PROPS);
            $return['alliance'] = isset($value->{'alliance'}) ? $converters['alliance']($value->{'alliance'}) : null;
            $return['shipType'] = isset($value->{'shipType'}) ? $converters['shipType']($value->{'shipType'}) : null;
            $return['faction'] = isset($value->{'faction'}) ? $converters['faction']($value->{'faction'}) : null;
            $return['corporation'] = isset($value->{'corporation'}) ? $converters['corporation']($value->{'corporation'}) : null;
            $return['character'] = isset($value->{'character'}) ? $converters['character']($value->{'character'}) : null;
            $return['weaponType'] = isset($value->{'weaponType'}) ? $converters['weaponType']($value->{'weaponType'}) : null;
            $return['finalBlow'] = isset($value->{'finalBlow'}) ? $converters['finalBlow']($value->{'finalBlow'}) : null;
            $return['securityStatus'] = isset($value->{'securityStatus'}) ? $converters['securityStatus']($value->{'securityStatus'}) : null;
            $return['damageDone'] = isset($value->{'damageDone'}) ? $converters['damageDone']($value->{'damageDone'}) : null;
            return $return;
        };

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