protected function configureDefaultData(){
        if (isset($this->properties['defaults']) && is_array($this->properties['defaults'])){
            foreach($this->properties['defaults'] as $data => $value){
                if (!isset($this->data[$data])){
                    $this->data[$data] = $value;
                }
            }
        }
        return $this;
    }
protected function configureDefaultData(){
        if (isset($this->properties['defaults']) && is_array($this->properties['defaults'])){
            foreach($this->properties['defaults'] as $data => $value){
                if (!isset($this->data[$data])){
                    $this->data[$data] = $value;
                }
            }
        }
        return $this;
    }
protected function configureDefaultData ( ) { if ( isset ( $ this -> properties [ 'defaults' ] ) && is_array ( $ this -> properties [ 'defaults' ] ) ) { foreach ( $ this -> properties [ 'defaults' ] as $ data => $ value ) { if ( ! isset ( $ this -> data [ $ data ] ) ) { $ this -> data [ $ data ] = $ value ; } } } return $ this ; }
Configures Data with defaults based on properties array
@return $this
Configures Data with defaults based on properties array