Add public keyword to methods
[MAILPOET-2413]
This commit is contained in:
@@ -13,11 +13,11 @@ class TimestampListener {
|
||||
/** @var Carbon */
|
||||
private $now;
|
||||
|
||||
function __construct(WPFunctions $wp) {
|
||||
public function __construct(WPFunctions $wp) {
|
||||
$this->now = Carbon::createFromTimestamp($wp->currentTime('timestamp'));
|
||||
}
|
||||
|
||||
function prePersist(LifecycleEventArgs $event_args) {
|
||||
public function prePersist(LifecycleEventArgs $event_args) {
|
||||
$entity = $event_args->getEntity();
|
||||
$entity_traits = $this->getEntityTraits($entity);
|
||||
|
||||
@@ -30,7 +30,7 @@ class TimestampListener {
|
||||
}
|
||||
}
|
||||
|
||||
function preUpdate(LifecycleEventArgs $event_args) {
|
||||
public function preUpdate(LifecycleEventArgs $event_args) {
|
||||
$entity = $event_args->getEntity();
|
||||
$entity_traits = $this->getEntityTraits($entity);
|
||||
|
||||
|
@@ -10,11 +10,11 @@ class ValidationListener {
|
||||
/** @var ValidatorInterface */
|
||||
private $validator;
|
||||
|
||||
function __construct(ValidatorInterface $validator) {
|
||||
public function __construct(ValidatorInterface $validator) {
|
||||
$this->validator = $validator;
|
||||
}
|
||||
|
||||
function onFlush(OnFlushEventArgs $event_args) {
|
||||
public function onFlush(OnFlushEventArgs $event_args) {
|
||||
$unit_of_work = $event_args->getEntityManager()->getUnitOfWork();
|
||||
|
||||
foreach ($unit_of_work->getScheduledEntityInsertions() as $entity) {
|
||||
|
Reference in New Issue
Block a user