protected function setCountry($code)
    {
        $this->data_country = $this->country->get($code);

        if (empty($this->data_country)) {
            $this->outputHttpStatus(404);
        }
    }
protected function setCountry($code)
    {
        $this->data_country = $this->country->get($code);

        if (empty($this->data_country)) {
            $this->outputHttpStatus(404);
        }
    }
protected function setCountry ( $ code ) { $ this -> data_country = $ this -> country -> get ( $ code ) ; if ( empty ( $ this -> data_country ) ) { $ this -> outputHttpStatus ( 404 ) ; } }
Sets a country data
@param string $code
Sets a country data