public function setPolicies($policies)
    {
        foreach ($policies as $name => $policy) {
            $this->addPolicy($name, $policy);
        }

        return $this;
    }
public function setPolicies($policies)
    {
        foreach ($policies as $name => $policy) {
            $this->addPolicy($name, $policy);
        }

        return $this;
    }
public function setPolicies ( $ policies ) { foreach ( $ policies as $ name => $ policy ) { $ this -> addPolicy ( $ name , $ policy ) ; } return $ this ; }
Method to set property policies

@param   PolicyInterface[] $policies

@return  static  Return self to support chaining.
Method to set property policies