public function warning(string $message)
    {
        if ($this->status == 'ok') {
            $this->status = 'warning';
        }

        $this->warnings[] = $message;
    }
public function warning(string $message)
    {
        if ($this->status == 'ok') {
            $this->status = 'warning';
        }

        $this->warnings[] = $message;
    }
public function warning ( string $ message ) { if ( $ this -> status == 'ok' ) { $ this -> status = 'warning' ; } $ this -> warnings [ ] = $ message ; }
Add warning message

@param string $message
Add warning message