protected function describeCount($count, $plural, $singular, $zero)
    {
        if (!is_int($count)) {
            throw new InvalidArgumentException(
                sprintf(
                    'Must be an integer',
                    is_object($count) ? get_class($count) : gettype($count)
                )
            );
        }

        $cli = $this->climate();

        if ($count === 0) {
            $cli->info(
                sprintf($zero, $count)
            );
            return false;
        } elseif ($count === 1) {
            $cli->comment(
                sprintf($singular, $count)
            );
        } else {
            $cli->comment(
                sprintf($plural, $count)
            );
        }

        $cli->br();

        return true;
    }
protected function describeCount($count, $plural, $singular, $zero)
    {
        if (!is_int($count)) {
            throw new InvalidArgumentException(
                sprintf(
                    'Must be an integer',
                    is_object($count) ? get_class($count) : gettype($count)
                )
            );
        }

        $cli = $this->climate();

        if ($count === 0) {
            $cli->info(
                sprintf($zero, $count)
            );
            return false;
        } elseif ($count === 1) {
            $cli->comment(
                sprintf($singular, $count)
            );
        } else {
            $cli->comment(
                sprintf($plural, $count)
            );
        }

        $cli->br();

        return true;
    }
protected function describeCount ( $ count , $ plural , $ singular , $ zero ) { if ( ! is_int ( $ count ) ) { throw new InvalidArgumentException ( sprintf ( 'Must be an integer' , is_object ( $ count ) ? get_class ( $ count ) : gettype ( $ count ) ) ) ; } $ cli = $ this -> climate ( ) ; if ( $ count === 0 ) { $ cli -> info ( sprintf ( $ zero , $ count ) ) ; return false ; } elseif ( $ count === 1 ) { $ cli -> comment ( sprintf ( $ singular , $ count ) ) ; } else { $ cli -> comment ( sprintf ( $ plural , $ count ) ) ; } $ cli -> br ( ) ; return true ; }
Describe the given object count.

@param  integer $count    The object count.
@param  string  $plural   The message when the count is more than 1.
@param  string  $singular The message when the count is 1.
@param  string  $zero     The message when the count is zero.
@throws InvalidArgumentException If the given argument is not an integer.
@return boolean
Describe the given object count .