public function clearPolicy()
    {
        foreach (['p', 'g'] as $sec) {
            if (!isset($this->model[$sec])) {
                return;
            }
            foreach ($this->model[$sec] as $key => $ast) {
                $this->model[$sec][$key]->policy = [];
            }
        }
    }
public function clearPolicy()
    {
        foreach (['p', 'g'] as $sec) {
            if (!isset($this->model[$sec])) {
                return;
            }
            foreach ($this->model[$sec] as $key => $ast) {
                $this->model[$sec][$key]->policy = [];
            }
        }
    }
public function clearPolicy ( ) { foreach ( [ 'p' , 'g' ] as $ sec ) { if ( ! isset ( $ this -> model [ $ sec ] ) ) { return ; } foreach ( $ this -> model [ $ sec ] as $ key => $ ast ) { $ this -> model [ $ sec ] [ $ key ] -> policy = [ ] ; } } }
clears all current policy.
clears all current policy .