public function __construct($content) { if (is_string($content) && trim($content)) { NpcFactory::fleshOut($content, $this); } else { NpcFactory::fleshOutFromData($content, $this); } }