chore: code cleanup
This commit is contained in:
@@ -9,7 +9,6 @@ use App\Entity\Traits\TimestampableEntity;
|
|||||||
use App\Repository\DestinationRepository;
|
use App\Repository\DestinationRepository;
|
||||||
use Doctrine\DBAL\Types\Types;
|
use Doctrine\DBAL\Types\Types;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
use Symfony\Component\Validator\Constraints as Assert;
|
|
||||||
|
|
||||||
#[ORM\Entity(repositoryClass: DestinationRepository::class)]
|
#[ORM\Entity(repositoryClass: DestinationRepository::class)]
|
||||||
class Destination implements TimestampableEntityInterface, SoftDeletableEntityInterface, BlameableEntityInterface
|
class Destination implements TimestampableEntityInterface, SoftDeletableEntityInterface, BlameableEntityInterface
|
||||||
@@ -58,7 +57,8 @@ class Destination implements TimestampableEntityInterface, SoftDeletableEntityIn
|
|||||||
|
|
||||||
public function __toString(): string
|
public function __toString(): string
|
||||||
{
|
{
|
||||||
return sprintf('%s - %s %s',
|
return sprintf(
|
||||||
|
'%s - %s %s',
|
||||||
$this->getDateFrom()->format('d.m.y'),
|
$this->getDateFrom()->format('d.m.y'),
|
||||||
$this->getDateTo()->format('d.m.y'),
|
$this->getDateTo()->format('d.m.y'),
|
||||||
$this->getProduct()
|
$this->getProduct()
|
||||||
|
|||||||
@@ -3,10 +3,8 @@
|
|||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
use App\Entity\Traits\BlameableEntity;
|
use App\Entity\Traits\BlameableEntity;
|
||||||
use App\Entity\Traits\SoftDeletableEntity;
|
|
||||||
use App\Entity\Traits\TimestampableEntity;
|
use App\Entity\Traits\TimestampableEntity;
|
||||||
use App\Repository\DispositionRepository;
|
use App\Repository\DispositionRepository;
|
||||||
use Carbon\Carbon;
|
|
||||||
use Carbon\CarbonPeriod;
|
use Carbon\CarbonPeriod;
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
use Doctrine\Common\Collections\Collection;
|
use Doctrine\Common\Collections\Collection;
|
||||||
|
|||||||
Reference in New Issue
Block a user