original_string: public function setDirPermissions($permissions)
      {
          if (! is_int($permissions)) {
              throw new InvalidArgumentException(sprintf(
                  'Invalid directory permissins provided; must be an '
                  . 'integer, "%s" received.',
                  is_object($permissions) ? get_class($permissions)
                                          : gettype($permissions)
              ));
          }
          if (! (0b100000000 & $permissions)) {
              throw new InvalidArgumentException(sprintf(
                  'Invalid permissions "%s" for directories. '
                  . 'Directories will not available for reading.',
                  decoct($permissions)
              ));
          }
          if (! (0b010000000 & $permissions)) {
              throw new InvalidArgumentException(sprintf(
                  'Invalid permissions "%s" for directories. '
                  . 'Directories will not available for writing.',
                  decoct($permissions)
              ));
          }
          if (! (0b001000000 & $permissions)) {
              throw new InvalidArgumentException(sprintf(
                  'Invalid permissions "%s" for directories. '
                  . 'The content of directories will not available.',
                  decoct($permissions)
              ));
          }
          $this->dirPermissions = $permissions;
      }
code: public function setDirPermissions($permissions)
      {
          if (! is_int($permissions)) {
              throw new InvalidArgumentException(sprintf(
                  'Invalid directory permissins provided; must be an '
                  . 'integer, "%s" received.',
                  is_object($permissions) ? get_class($permissions)
                                          : gettype($permissions)
              ));
          }
          if (! (0b100000000 & $permissions)) {
              throw new InvalidArgumentException(sprintf(
                  'Invalid permissions "%s" for directories. '
                  . 'Directories will not available for reading.',
                  decoct($permissions)
              ));
          }
          if (! (0b010000000 & $permissions)) {
              throw new InvalidArgumentException(sprintf(
                  'Invalid permissions "%s" for directories. '
                  . 'Directories will not available for writing.',
                  decoct($permissions)
              ));
          }
          if (! (0b001000000 & $permissions)) {
              throw new InvalidArgumentException(sprintf(
                  'Invalid permissions "%s" for directories. '
                  . 'The content of directories will not available.',
                  decoct($permissions)
              ));
          }
          $this->dirPermissions = $permissions;
      }
code_tokens: public function setDirPermissions ( $ permissions ) { if ( ! is_int ( $ permissions ) ) { throw new InvalidArgumentException ( sprintf ( 'Invalid directory permissins provided; must be an ' . 'integer, "%s" received.' , is_object ( $ permissions ) ? get_class ( $ permissions ) : gettype ( $ permissions ) ) ) ; } if ( ! ( 0b100000000 & $ permissions ) ) { throw new InvalidArgumentException ( sprintf ( 'Invalid permissions "%s" for directories. ' . 'Directories will not available for reading.' , decoct ( $ permissions ) ) ) ; } if ( ! ( 0b010000000 & $ permissions ) ) { throw new InvalidArgumentException ( sprintf ( 'Invalid permissions "%s" for directories. ' . 'Directories will not available for writing.' , decoct ( $ permissions ) ) ) ; } if ( ! ( 0b001000000 & $ permissions ) ) { throw new InvalidArgumentException ( sprintf ( 'Invalid permissions "%s" for directories. ' . 'The content of directories will not available.' , decoct ( $ permissions ) ) ) ; } $ this -> dirPermissions = $ permissions ; }
docstring: Sets the permissions of new directories.
  
  If the upload options contains the "dir_permissions" key, this method
  will be called automatically.
  
  @param int $permissions The permissions of new directories
  
  @throws \InvalidArgumentException
  
  - If specified permissions are non integer
  - If specified permissions are not readable
  - If specified permissions are not writable
  - If specified permissions makes the content unreadable
docstring_tokens: Sets the permissions of new directories .