for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPSC\PagSeguro\Customer;
use JMS\Serializer\Annotation as Serializer;
use PHPSC\PagSeguro\SerializerTrait;
/**
* @Serializer\AccessType("public_method")
* @Serializer\ReadOnly
* @Serializer\XmlRoot("phone")
*
* @author Luís Otávio Cobucci Oblonczyk <[email protected]>
*/
class Phone
{
use SerializerTrait;
* @var string
private $areaCode;
private $number;
* @param string $areaCode
* @param string $number
public function __construct($areaCode, $number)
$this->areaCode = $areaCode;
$this->number = $number;
}
* @return string
public function getAreaCode()
return $this->areaCode;
public function getNumber()
return $this->number;