<?php

namespace App\ViewModels\PagSeguro\PagSeguroResponseViewModel;

use App\Utils\Builder;

class PagSeguroPhoneViewModelBuilder implements Builder {
	protected $type;
	protected $country;
	protected $area;
	protected $number;

	public function build(): PagSeguroPhoneViewModel {

		$obj = new PagSeguroPhoneViewModel();

		$obj->setType( $this->type );
		$obj->setCountry( $this->country );
		$obj->setArea( $this->area );
		$obj->setNumber( $this->number );

		return $obj;

	}

	/**
	 *
	 * @param mixed $type
	 */
	public function setType($type): PagSeguroPhoneViewModelBuilder {

		$this->type = $type;
		return $this;

	}

	/**
	 *
	 * @param mixed $country
	 */
	public function setCountry($country): PagSeguroPhoneViewModelBuilder {

		$this->country = $country;
		return $this;

	}

	/**
	 *
	 * @param mixed $area
	 */
	public function setArea($area): PagSeguroPhoneViewModelBuilder {

		$this->area = $area;
		return $this;

	}

	/**
	 *
	 * @param mixed $number
	 */
	public function setNumber($number): PagSeguroPhoneViewModelBuilder {

		$this->number = $number;
		return $this;

	}

}

