src/Engine/CrudeSetupTrait/InputType.php
public function setTypes($attr, $type = null)
    {
        if (is_array($attr))
            $this->inputType = array_merge($this->inputType, $attr);
        else
            $this->inputType[$attr] = $type;

        return $this;
    }
public function setTypes($attr, $type = null)
    {
        if (is_array($attr))
            $this->inputType = array_merge($this->inputType, $attr);
        else
            $this->inputType[$attr] = $type;

        return $this;
    }
public function setTypes ( $ attr , $ type = null ) { if ( is_array ( $ attr ) ) $ this -> inputType = array_merge ( $ this -> inputType , $ attr ) ; else $ this -> inputType [ $ attr ] = $ type ; return $ this ; }
Sets the Input types.

@param  string|array $attr
@param  array $value

@return self
Sets the Input types .