for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace WeDevBr\Bankly\Inputs;
use WeDevBr\Bankly\Support\Contracts\CustomerPhoneInterface;
/**
* CustomerPhone class
*
* PHP version 7.4|8.0
* @author WeDev Brasil Team <[email protected]>
* @author Rafael Teixeira <[email protected]>
* @copyright 2020 We Dev Tecnologia Ltda
* @link https://github.com/wedevBr/bankly-laravel
*/
class CustomerPhone implements CustomerPhoneInterface
{
/** @var string */
protected $countryCode;
protected $number;
* @return string
public function getCountryCode(): string
return $this->countryCode;
}
public function getNumber(): string
return $this->number;
public function setCountryCode(string $countryCode): CustomerPhone
$this->countryCode = $countryCode;
return $this;
public function setNumber(string $number): CustomerPhone
$this->number = $number;
* @return array
public function toArray(): array
return [
'number' => $this->number,
'countryCode' => $this->countryCode
];