src/PeekAndPoke/Component/Formal/Field/AbstractFormField.php
public function that(IFormFieldConfiguration $_)
    {
        foreach (func_get_args() as $arg) {

            if (! $arg instanceof IFormFieldConfiguration) {
                throw new InvalidConfigurationValueException($arg);
            }

            if ($arg instanceof IMapper) {
                $this->mapper = $arg;
            } elseif ($arg instanceof IInputRule) {
                $this->inputRules[] = $arg;
            } elseif ($arg instanceof IOutcomeRule) {
                $this->outcomeRules[] = $arg;
            } elseif ($arg instanceof IFinalRule) {
                $this->finalRules[] = $arg;
            }
        }

        return $this;
    }
public function that(IFormFieldConfiguration $_)
    {
        foreach (func_get_args() as $arg) {

            if (! $arg instanceof IFormFieldConfiguration) {
                throw new InvalidConfigurationValueException($arg);
            }

            if ($arg instanceof IMapper) {
                $this->mapper = $arg;
            } elseif ($arg instanceof IInputRule) {
                $this->inputRules[] = $arg;
            } elseif ($arg instanceof IOutcomeRule) {
                $this->outcomeRules[] = $arg;
            } elseif ($arg instanceof IFinalRule) {
                $this->finalRules[] = $arg;
            }
        }

        return $this;
    }
public function that ( IFormFieldConfiguration $ _ ) { foreach ( func_get_args ( ) as $ arg ) { if ( ! $ arg instanceof IFormFieldConfiguration ) { throw new InvalidConfigurationValueException ( $ arg ) ; } if ( $ arg instanceof IMapper ) { $ this -> mapper = $ arg ; } elseif ( $ arg instanceof IInputRule ) { $ this -> inputRules [ ] = $ arg ; } elseif ( $ arg instanceof IOutcomeRule ) { $ this -> outcomeRules [ ] = $ arg ; } elseif ( $ arg instanceof IFinalRule ) { $ this -> finalRules [ ] = $ arg ; } } return $ this ; }
Set the IMapper, IInputRule(s) and IOutcomeRule(s)

@param IFormFieldConfiguration $_

@return $this

@throws InvalidConfigurationValueException
Set the IMapper IInputRule ( s ) and IOutcomeRule ( s )