prop(array('text', 'status')); return span ( setClass($status ? "status-$status" : 'status'), set($this->getRestProps()), $text, $this->children() ); } /** * @param mixed ...$children * @return $this * @param string $status * @param string $text */ public static function create($status, $text, ...$children) { $props = array('status' => $status, 'text' => $text); return new static(set($props), ...$children); } }