function testSetClanInfo() { $clan = new Clan(); $clan->setFounder('randomFounder'); $clan->setName('AwesomeClan'); $this->assertEquals('randomFounder', $clan->getFounder()); $this->assertEquals('AwesomeClan', $clan->getName()); }
/** * Create the flesh of an npc from it's data **/ public static function fleshOutFromData($data, Clan $clan) { $clan->setId($data['clan_id']); $clan->setName($data['clan_name']); $clan->setAvatarUrl($data['clan_avatar_url']); }