Example #1
0
 /**
  * @author WN
  * @param string|null $content
  * @param int|null $color
  * @param int|null $option
  * @param int|null $bgcolor
  * @return Char
  */
 public static function make($content = null, $color = null, $option = null, $bgcolor = null, $default = null)
 {
     $obj = new self($content);
     if ($content !== null) {
         $obj->setContent($content);
     }
     if ($color !== null) {
         $obj->setColor($color);
     }
     if ($bgcolor !== null) {
         $obj->setBgcolor($bgcolor);
     }
     $obj->setDefault($default);
     return $obj;
 }