Add public keyword to methods

[MAILPOET-2413]
This commit is contained in:
Amine Ben hammou
2019-12-26 12:56:49 +01:00
committed by wxa
parent ec409042d5
commit 43df66d162
823 changed files with 4440 additions and 4440 deletions

View File

@ -12,7 +12,7 @@ class ValidationException extends \RuntimeException {
/** @var ConstraintViolationListInterface|ConstraintViolationInterface[] */
private $violations;
function __construct($resource_name, ConstraintViolationListInterface $violations) {
public function __construct($resource_name, ConstraintViolationListInterface $violations) {
$this->resource_name = $resource_name;
$this->violations = $violations;
@ -23,17 +23,17 @@ class ValidationException extends \RuntimeException {
}
/** @return string */
function getResourceName() {
public function getResourceName() {
return $this->resource_name;
}
/** @return ConstraintViolationListInterface|ConstraintViolationInterface[] */
function getViolations() {
public function getViolations() {
return $this->violations;
}
/** @return string[] */
function getErrors() {
public function getErrors() {
$messages = [];
foreach ($this->violations as $violation) {
$messages[] = $this->formatError($violation);

View File

@ -13,11 +13,11 @@ class ValidatorFactory {
/** @var AnnotationReaderProvider */
private $annotation_reader_provider;
function __construct(AnnotationReaderProvider $annotation_reader_provider) {
public function __construct(AnnotationReaderProvider $annotation_reader_provider) {
$this->annotation_reader_provider = $annotation_reader_provider;
}
function createValidator() {
public function createValidator() {
$builder = Validation::createValidatorBuilder();
// annotation reader exists only in dev environment, on production cache is pre-generated