public function defaults($defaults) {
        $this->defaults = $defaults;

        foreach ($defaults as $k => $v) {
            if (property_exists($this, $k)) {
                $this->{$k} = $v;
            }
        }
    }
public function defaults($defaults) {
        $this->defaults = $defaults;

        foreach ($defaults as $k => $v) {
            if (property_exists($this, $k)) {
                $this->{$k} = $v;
            }
        }
    }
public function defaults ( $ defaults ) { $ this -> defaults = $ defaults ; foreach ( $ defaults as $ k => $ v ) { if ( property_exists ( $ this , $ k ) ) { $ this -> { $ k } = $ v ; } } }
Sets the default values for this PatrolObject

@param array $defaults
Sets the default values for this PatrolObject