Commit c608e391 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Ajout de 2 traits utiles.

parent 00c0d057
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
<?php

namespace UnicaenDbImport\Service\Traits;

use UnicaenDbImport\Service\ImportService;

trait ImportServiceAwareTrait
{
    /**
     * @var ImportService
     */
    protected $importService;

    /**
     * @param ImportService $importService
     * @return self
     */
    public function setImportService(ImportService $importService): self
    {
        $this->importService = $importService;
        return $this;
    }
}
 No newline at end of file
+23 −0
Original line number Diff line number Diff line
<?php

namespace UnicaenDbImport\Service\Traits;

use UnicaenDbImport\Service\SynchroService;

trait SynchroServiceAwareTrait
{
    /**
     * @var SynchroService
     */
    protected $synchroService;

    /**
     * @param SynchroService $synchroService
     * @return self
     */
    public function setSynchroService(SynchroService $synchroService): self
    {
        $this->synchroService = $synchroService;
        return $this;
    }
}
 No newline at end of file