lib/Model/Shopper.php
public function setPhone($phone)
    {

        if (!is_null($phone) && (!preg_match("/^\\+?[\\d\\s]+$/", $phone))) {
            throw new \InvalidArgumentException("invalid value for $phone when calling Shopper., must conform to the pattern /^\\+?[\\d\\s]+$/.");
        }

        $this->container['phone'] = $phone;

        return $this;
    }
public function setPhone($phone)
    {

        if (!is_null($phone) && (!preg_match("/^\\+?[\\d\\s]+$/", $phone))) {
            throw new \InvalidArgumentException("invalid value for $phone when calling Shopper., must conform to the pattern /^\\+?[\\d\\s]+$/.");
        }

        $this->container['phone'] = $phone;

        return $this;
    }
Sets phone
@param string $phone The shopper's contact phone number
@return $this