src/Adapter/FileCache.php
protected function setDirPermissions($permissions)
    {
        $permissions = (int) $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;
    }
protected function setDirPermissions($permissions)
    {
        $permissions = (int) $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;
    }
protected function setDirPermissions ( $ permissions ) { $ permissions = ( int ) $ 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 ; }
Sets permissions for directories.

@param int $permissions The directory permissions

@throws \InvalidArgumentException If the permissions do not allow write
to directory or read from directory
Sets permissions for directories .