for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link https://github.com/nnx-framework/form-comparator
* @author Malofeykin Andrey <[email protected]>
*/
namespace Nnx\FormComparator\Context;
use Zend\Form\FormInterface;
* Class ComparableForm
*
* @package Nnx\FormComparator\Context
class ComparableForm
{
* Форма которую сравнивают
* @var FormInterface
private $sourceForm;
* Форма с которой сравнивают
private $targetForm;
* ComparableForm constructor.
* @param FormInterface $sourceForm
* @param FormInterface $targetForm
public function __construct(FormInterface $sourceForm, FormInterface $targetForm)
$this->sourceForm = $sourceForm;
$this->targetForm = $targetForm;
}
* Возвращает форму которую сравнивают
* @return FormInterface
public function getSourceForm()
return $this->sourceForm;
* Возвращает форму с которой сравнивают
public function getTargetForm()
return $this->targetForm;