public function applyRoleMask(INabuRoleMask $object, array $params = null) : bool
    {
        return $object->applyRoleMask(
            $this->nb_role,
            array(
                self::ROLE_MASK_USER_SIGNED => $this->isUserLogged(),
                self::ROLE_MASK_WORK_CUSTOMER => $this->hasWorkCustomer()
            )
        );
    }
public function applyRoleMask(INabuRoleMask $object, array $params = null) : bool
    {
        return $object->applyRoleMask(
            $this->nb_role,
            array(
                self::ROLE_MASK_USER_SIGNED => $this->isUserLogged(),
                self::ROLE_MASK_WORK_CUSTOMER => $this->hasWorkCustomer()
            )
        );
    }
public function applyRoleMask ( INabuRoleMask $ object , array $ params = null ) : bool { return $ object -> applyRoleMask ( $ this -> nb_role , array ( self :: ROLE_MASK_USER_SIGNED => $ this -> isUserLogged ( ) , self :: ROLE_MASK_WORK_CUSTOMER => $ this -> hasWorkCustomer ( ) ) ) ; }
Applies a Role to an object, forcing to clean all related entities that does not share the same role.
@param INabuRoleMask $object Role Mask entity to be applied.
@param array|null $params Additional parameters to be applied when perform masking.
@return bool Returns true if the cleaning is performed.
Applies a Role to an object forcing to clean all related entities that does not share the same role .