cssclass === null) { $this->cssclass = 'col-md-6 col-sm-12 col-xs-12'; } if ($this->color === null) { $this->color = 'box-info'; } $this->color = $this->color === null ? 'box-info' : 'box-' . $this->color; if ($this->title === null) { $this->title = 'Box Title'; } } public function run() { $header = '

' . $this->title . '

'; $body = $this->body; return '
' . $header . $body . '
'; } }