src/Kunstmaan/AdminBundle/Helper/Security/Acl/Permission/MaskBuilder.php
public function getPattern()
    {
        $pattern = self::ALL_OFF;
        $length = strlen($pattern);
        $bitmask = str_pad(decbin($this->mask), $length, '0', STR_PAD_LEFT);

        for ($i = $length - 1; $i >= 0; --$i) {
            if ('1' === $bitmask[$i]) {
                try {
                    $pattern[$i] = self::getCode(1 << ($length - $i - 1));
                } catch (\Exception $notPredefined) {
                    $pattern[$i] = self::ON;
                }
            }
        }

        return $pattern;
    }
public function getPattern()
    {
        $pattern = self::ALL_OFF;
        $length = strlen($pattern);
        $bitmask = str_pad(decbin($this->mask), $length, '0', STR_PAD_LEFT);

        for ($i = $length - 1; $i >= 0; --$i) {
            if ('1' === $bitmask[$i]) {
                try {
                    $pattern[$i] = self::getCode(1 << ($length - $i - 1));
                } catch (\Exception $notPredefined) {
                    $pattern[$i] = self::ON;
                }
            }
        }

        return $pattern;
    }
public function getPattern ( ) { $ pattern = self :: ALL_OFF ; $ length = strlen ( $ pattern ) ; $ bitmask = str_pad ( decbin ( $ this -> mask ) , $ length , '0' , STR_PAD_LEFT ) ; for ( $ i = $ length - 1 ; $ i >= 0 ; -- $ i ) { if ( '1' === $ bitmask [ $ i ] ) { try { $ pattern [ $ i ] = self :: getCode ( 1 << ( $ length - $ i - 1 ) ) ; } catch ( \ Exception $ notPredefined ) { $ pattern [ $ i ] = self :: ON ; } } } return $ pattern ; }
Returns a human-readable representation of the permission

@return string
Returns a human - readable representation of the permission