Esempio n. 1
0
 public function deepClone(&$object)
 {
     foreach ($object as &$val) {
         if (Validator::isObject($val)) {
             $val = clone $val;
         } elseif (Validator::isArray($val)) {
             $this->deepClone($val);
         }
     }
 }
Esempio n. 2
0
 public static function validateDepend($depends)
 {
     if (!Validator::isArray($depends) || !Validator::isObject($depends)) {
         throw new IllegalArgumentException();
     }
 }