test: added tests
This commit is contained in:
parent
9286839d99
commit
b102519154
20
src/Service/PrinterService.php
Normal file
20
src/Service/PrinterService.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Service;
|
||||
|
||||
use App\Entity\Printer;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Doctrine\ORM\Mapping\Entity;
|
||||
|
||||
class PrinterService
|
||||
{
|
||||
public function __construct(private readonly EntityManagerInterface $entityManager)
|
||||
{
|
||||
}
|
||||
|
||||
public function deletePrinter(Printer $printer)
|
||||
{
|
||||
$this->entityManager->remove($printer);
|
||||
$this->entityManager->flush();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user