public function setProperties(array $properties) {
        if (!isset($properties[self::DATA_PROPERTY_REQUIRED])){
            $properties[self::DATA_PROPERTY_REQUIRED] = array();
        }
        if (!isset($properties[self::DATA_PROPERTY_DEFAULTS])){
            $properties[self::DATA_PROPERTY_DEFAULTS] = array();
        }
        $this->properties = $properties;
        return $this;
    }
public function setProperties(array $properties) {
        if (!isset($properties[self::DATA_PROPERTY_REQUIRED])){
            $properties[self::DATA_PROPERTY_REQUIRED] = array();
        }
        if (!isset($properties[self::DATA_PROPERTY_DEFAULTS])){
            $properties[self::DATA_PROPERTY_DEFAULTS] = array();
        }
        $this->properties = $properties;
        return $this;
    }
public function setProperties ( array $ properties ) { if ( ! isset ( $ properties [ self :: DATA_PROPERTY_REQUIRED ] ) ) { $ properties [ self :: DATA_PROPERTY_REQUIRED ] = array ( ) ; } if ( ! isset ( $ properties [ self :: DATA_PROPERTY_DEFAULTS ] ) ) { $ properties [ self :: DATA_PROPERTY_DEFAULTS ] = array ( ) ; } $ this -> properties = $ properties ; return $ this ; }
Set properties for data
@param array $properties
@return $this
Set properties for data