public function addOption($type, $value = true)
    {
        //====================================================================//
        // Safety Checks ==> Verify a new Field Exists
        if (empty($this->new)) {
            Splash::log()->err("ErrFieldsNoNew");
        } elseif (empty($type)) {
            Splash::log()->err("Field Option Type Cannot be Empty");
        } else {
            //====================================================================//
            // Update New Field structure
            $this->new->options[$type] = $value;
        }

        return $this;
    }
public function addOption($type, $value = true)
    {
        //====================================================================//
        // Safety Checks ==> Verify a new Field Exists
        if (empty($this->new)) {
            Splash::log()->err("ErrFieldsNoNew");
        } elseif (empty($type)) {
            Splash::log()->err("Field Option Type Cannot be Empty");
        } else {
            //====================================================================//
            // Update New Field structure
            $this->new->options[$type] = $value;
        }

        return $this;
    }
public function addOption ( $ type , $ value = true ) { //====================================================================// // Safety Checks ==> Verify a new Field Exists if ( empty ( $ this -> new ) ) { Splash :: log ( ) -> err ( "ErrFieldsNoNew" ) ; } elseif ( empty ( $ type ) ) { Splash :: log ( ) -> err ( "Field Option Type Cannot be Empty" ) ; } else { //====================================================================// // Update New Field structure $ this -> new -> options [ $ type ] = $ value ; } return $ this ; }
Add New Option for Current Field

@param string      $type  Constrain Type
@param bool|string $value Constrain Value

@return $this
Add New Option for Current Field