protected function checkContent()
    {
        if (is_array($this->content) && count($this->content)) {
            foreach ($this->content as $name => $value) {
                switch ($name) {
                    case 'category':
                    case 'mainMessage':
                    case 'buttonMessage':
                    case 'language':
                        $this->addContentOption($name, $value);
                        break;
                    case 'mainParams':
                    case 'buttonParams':
                        $this->addParamsOption($name, $value);
                        break;
                }
            }
        }
    }
protected function checkContent()
    {
        if (is_array($this->content) && count($this->content)) {
            foreach ($this->content as $name => $value) {
                switch ($name) {
                    case 'category':
                    case 'mainMessage':
                    case 'buttonMessage':
                    case 'language':
                        $this->addContentOption($name, $value);
                        break;
                    case 'mainParams':
                    case 'buttonParams':
                        $this->addParamsOption($name, $value);
                        break;
                }
            }
        }
    }
protected function checkContent ( ) { if ( is_array ( $ this -> content ) && count ( $ this -> content ) ) { foreach ( $ this -> content as $ name => $ value ) { switch ( $ name ) { case 'category' : case 'mainMessage' : case 'buttonMessage' : case 'language' : $ this -> addContentOption ( $ name , $ value ) ; break ; case 'mainParams' : case 'buttonParams' : $ this -> addParamsOption ( $ name , $ value ) ; break ; } } } }
Validates content parameters.
Validates content parameters .