protected function _set_args($what, $alias, $value)
    {
        // save value in args
        if ($alias === null) {
            $this->args[$what][] = $value;
        } else {

            // don't allow multiple values with same alias
            if (isset($this->args[$what][$alias])) {
                throw new Exception([
                    ucfirst($what).' alias should be unique',
                    'alias' => $alias,
                ]);
            }

            $this->args[$what][$alias] = $value;
        }
    }
protected function _set_args($what, $alias, $value)
    {
        // save value in args
        if ($alias === null) {
            $this->args[$what][] = $value;
        } else {

            // don't allow multiple values with same alias
            if (isset($this->args[$what][$alias])) {
                throw new Exception([
                    ucfirst($what).' alias should be unique',
                    'alias' => $alias,
                ]);
            }

            $this->args[$what][$alias] = $value;
        }
    }
protected function _set_args ( $ what , $ alias , $ value ) { // save value in args if ( $ alias === null ) { $ this -> args [ $ what ] [ ] = $ value ; } else { // don't allow multiple values with same alias if ( isset ( $ this -> args [ $ what ] [ $ alias ] ) ) { throw new Exception ( [ ucfirst ( $ what ) . ' alias should be unique' , 'alias' => $ alias , ] ) ; } $ this -> args [ $ what ] [ $ alias ] = $ value ; } }
Sets value in args array. Doesn't allow duplicate aliases.

@param string $what  Where to set it - table|field
@param string $alias Alias name
@param mixed  $value Value to set in args array
Sets value in args array . Doesn t allow duplicate aliases .