<?php

namespace App\ViewModels\LojaCompra\LojaCompraCartaoCreditoPagSeguro\LojaCompraRegistrationViewModel;

use App\Utils\Builder;

class LojaCompraCardRegistrationViewModelBuilder implements Builder {
	protected $encrypted;
	protected $security_code;
	protected $holder;
	protected $store;

	public function build(): LojaCompraCardRegistrationViewModel {

		$obj = new LojaCompraCardRegistrationViewModel();

		$obj->setEncrypted( $this->encrypted );
		$obj->setExpMonth( $this->exp_month );
		$obj->setExpYear( $this->exp_year );
		$obj->setSecurityCode( $this->security_code );
		$obj->setHolder( $this->holder );
		$obj->setStore( $this->store );

		return $obj;

	}

	/**
	 *
	 * @param mixed $encrypted
	 */
	public function setEncrypted($encrypted): LojaCompraCardRegistrationViewModelBuilder {

		$this->encrypted = $encrypted;
		return $this;

	}

	/**
	 *
	 * @param mixed $exp_month
	 */
	public function setExpMonth($exp_month): LojaCompraCardRegistrationViewModelBuilder {

		$this->exp_month = $exp_month;
		return $this;

	}

	/**
	 *
	 * @param mixed $exp_year
	 */
	public function setExpYear($exp_year): LojaCompraCardRegistrationViewModelBuilder {

		$this->exp_year = $exp_year;
		return $this;

	}

	/**
	 *
	 * @param mixed $security_code
	 */
	public function setSecurityCode($security_code): LojaCompraCardRegistrationViewModelBuilder {

		$this->security_code = $security_code;
		return $this;

	}

	/**
	 *
	 * @param mixed $holder
	 */
	public function setHolder($holder): LojaCompraCardRegistrationViewModelBuilder {

		$this->holder = $holder;
		return $this;

	}

	/**
	 *
	 * @param mixed $store
	 */
	public function setStore($store): LojaCompraCardRegistrationViewModelBuilder {

		$this->store = $store;
		return $this;

	}

}

