/** * @test * @group value */ public function the_country_code_returns_the_country_code_upon_request() { $definition = '1649'; $countryCode = new CountryCode($definition); $this->assertEquals($definition, $countryCode->getCountryCode()); }
/** * @see http://en.wikipedia.org/wiki/MSISDN#MSISDN_Format * @see https://www.messagebird.com/developers#messaging-send * * @return string */ public function toMSISDN() { return $this->countryCode->getCountryCode() . $this->phoneNumber->formatAsMsisdnPart(); }