public static function isDirectory($value, $message = null)
    {
        if (!is_string($value) || !is_dir($value)) {
            throw new InvalidArgumentException(sprintf(
                $message ?: 'Expected directory, but got %s',
                Helper::valueToString($value)
            ));
        }
    }
public static function isDirectory($value, $message = null)
    {
        if (!is_string($value) || !is_dir($value)) {
            throw new InvalidArgumentException(sprintf(
                $message ?: 'Expected directory, but got %s',
                Helper::valueToString($value)
            ));
        }
    }
public static function isDirectory ( $ value , $ message = null ) { if ( ! is_string ( $ value ) || ! is_dir ( $ value ) ) { throw new InvalidArgumentException ( sprintf ( $ message ? : 'Expected directory, but got %s' , Helper :: valueToString ( $ value ) ) ) ; } }
Assert that the value is directory.

@param mixed  $value
@param string $message

@return void

@throws InvalidArgumentException
Assert that the value is directory .