public function getDescriptionByStatusCode($code)
    {
        // Make sure the expected type supplied
        $code = (int) $code;

        if (isset($this->statuses[$code])) {
            return $this->statuses[$code];
        } else {
            throw new OutOfRangeException(
                sprintf('The status code "%s" is out of allowed range', $code)
            );
        }
    }
public function getDescriptionByStatusCode($code)
    {
        // Make sure the expected type supplied
        $code = (int) $code;

        if (isset($this->statuses[$code])) {
            return $this->statuses[$code];
        } else {
            throw new OutOfRangeException(
                sprintf('The status code "%s" is out of allowed range', $code)
            );
        }
    }
public function getDescriptionByStatusCode ( $ code ) { // Make sure the expected type supplied $ code = ( int ) $ code ; if ( isset ( $ this -> statuses [ $ code ] ) ) { return $ this -> statuses [ $ code ] ; } else { throw new OutOfRangeException ( sprintf ( 'The status code "%s" is out of allowed range' , $ code ) ) ; } }
Returns description by its associated code

@param integer $code Status code
@throws \OutOfRangeException If the supplied code is out of range
@return string
Returns description by its associated code