<?php

namespace metatron;

class Edition {

    public function loadFromArray(array $editionData)
    {
        foreach($editionData as $key => $value)
        {
            $this->{$key} = $value;
        }
    }

}
<?php

namespace metatron;

class Edition {

    public function loadFromArray(array $editionData)
    {
        foreach($editionData as $key => $value)
        {
            $this->{$key} = $value;
        }
    }

    public function getContributorNames()
    {
        $contributors = array();
        if(isset($this->contributors))
        {
            foreach($this->contributors as $c)
            {
                if(isset($c['name']))
                {
                    $contributors[] = $c['name'];
                }
            }
        }
        return $contributors;
    }
}
Return the edition contributor names as an array
Return the edition contributor names as an array
