public static function toText(SocialActivity $entity) { if (isset(self::$Converters[$entity->getType()])) { $method = self::$Converters[$entity->getType()] . 'Text'; return self::$method($entity); } }
public function getType() { $this->__load(); return parent::getType(); }