src/PortaText/Command/Api/ContactLists.php
public function withNumber($number, $variables = null)
    {
        if (!is_null($variables)) {
            $vars = array();
            foreach ($variables as $k => $v) {
                $vars[] = array('key' => $k, 'value' => $v);
            }
            $this->setArgument("variables", $vars);
        }
        return $this->setArgument("number", $number);
    }
public function withNumber($number, $variables = null)
    {
        if (!is_null($variables)) {
            $vars = array();
            foreach ($variables as $k => $v) {
                $vars[] = array('key' => $k, 'value' => $v);
            }
            $this->setArgument("variables", $vars);
        }
        return $this->setArgument("number", $number);
    }
public function withNumber ( $ number , $ variables = null ) { if ( ! is_null ( $ variables ) ) { $ vars = array ( ) ; foreach ( $ variables as $ k => $ v ) { $ vars [ ] = array ( 'key' => $ k , 'value' => $ v ) ; } $ this -> setArgument ( "variables" , $ vars ) ; } return $ this -> setArgument ( "number" , $ number ) ; }
Add or remove this number to the contact list.

@param string $number Number.
@param array $variables variables.

@return PortaText\Command\ICommand
Add or remove this number to the contact list .