Example #1
0
 /**
  * Creates a new Guild object with attributes
  *
  * @param $name string Name of the guild
  * @param $banner string Banner of the guild
  * @return Guild The newly created guild
  */
 public static function withAttributes($name, $banner)
 {
     $instance = new self();
     $instance->setName($name);
     $instance->setBanner($banner);
     return $instance;
 }