diff --git a/src/Binder.php b/src/Binder.php index fc1012d..66e1175 100644 --- a/src/Binder.php +++ b/src/Binder.php @@ -13,11 +13,11 @@ class Binder { /** @var ValidatorInterface */ - private $validator; + protected $validator; /** @var MapperInterface */ - private $mapper; + protected $mapper; /** @var array */ - private $defaultGroups; + protected $defaultGroups; public function __construct(ValidatorInterface $validator, MapperInterface $mapper, $addDefaultGroups = ['Default']) { @@ -88,7 +88,7 @@ public function bind($request, $object, array $validationGroups = []) return $this->createBindResultFromFilledObject($issues, $newObject); } - private function createBindResultFromFilledObject($issues, $object) + protected function createBindResultFromFilledObject($issues, $object) { return new BindResult($object, $issues); }