Skip to content
Snippets Groups Projects
Commit c608e391 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Ajout de 2 traits utiles.

parent 00c0d057
No related branches found
No related tags found
No related merge requests found
<?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
<?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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment