src/Entity.php
protected function setDefaultDataTypes()
    {
        foreach ($this->_params as $key => $value) {
            switch (gettype($value)) {
                case "boolean":
                    $this->_types[$key] = 'boolean';
                    break;
                case "integer":
                    $this->_types[$key] = 'integer';
                    break;
                case "double":
                    $this->_types[$key] = 'float';
                    break;
                case "string":
                    $this->_types[$key] = 'string';
                    break;
                case "array":
                    $this->_types[$key] = 'array';
                    break;
                default:
                    $this->_types[$key] = null;
                    break;
            }
        }
    }
protected function setDefaultDataTypes()
    {
        foreach ($this->_params as $key => $value) {
            switch (gettype($value)) {
                case "boolean":
                    $this->_types[$key] = 'boolean';
                    break;
                case "integer":
                    $this->_types[$key] = 'integer';
                    break;
                case "double":
                    $this->_types[$key] = 'float';
                    break;
                case "string":
                    $this->_types[$key] = 'string';
                    break;
                case "array":
                    $this->_types[$key] = 'array';
                    break;
                default:
                    $this->_types[$key] = null;
                    break;
            }
        }
    }
protected function setDefaultDataTypes ( ) { foreach ( $ this -> _params as $ key => $ value ) { switch ( gettype ( $ value ) ) { case "boolean" : $ this -> _types [ $ key ] = 'boolean' ; break ; case "integer" : $ this -> _types [ $ key ] = 'integer' ; break ; case "double" : $ this -> _types [ $ key ] = 'float' ; break ; case "string" : $ this -> _types [ $ key ] = 'string' ; break ; case "array" : $ this -> _types [ $ key ] = 'array' ; break ; default : $ this -> _types [ $ key ] = null ; break ; } } }
Get the default data types
Get the default data types