for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace WeDevBr\Bankly\Types\Pix;
use WeDevBr\Bankly\Validators\Pix\AddressingAccountValidator;
class AddressingAccount
{
/** @var string */
public $branch;
public $number;
public $type;
/**
* This validate and return an array
* @return array
*/
public function toArray(): array
$this->validate();
return (array) $this;
}
* This function validate a Addressing Account
public function validate()
$validator = new AddressingAccountValidator($this);
$validator->validate();