Deprecated: Symfony\Component\Translation\t(): Implicitly marking parameter $domain as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/translation/Resources/functions.php on line 18

Deprecated: Symfony\Component\Dotenv\Dotenv::loadEnv(): Implicitly marking parameter $envKey as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/dotenv/Dotenv.php on line 110

Deprecated: Symfony\Component\Runtime\GenericRuntime::getResolver(): Implicitly marking parameter $reflector as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/runtime/GenericRuntime.php on line 89

Deprecated: Symfony\Component\Runtime\RuntimeInterface::getResolver(): Implicitly marking parameter $reflector as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/runtime/RuntimeInterface.php on line 26

Deprecated: Symfony\Component\Console\Input\ArgvInput::__construct(): Implicitly marking parameter $argv as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/ArgvInput.php on line 46

Deprecated: Symfony\Component\Console\Input\ArgvInput::__construct(): Implicitly marking parameter $definition as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/ArgvInput.php on line 46

Deprecated: Symfony\Component\Console\Input\Input::__construct(): Implicitly marking parameter $definition as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/Input.php on line 36

Deprecated: Constant E_STRICT is deprecated in /var/www/html/t/taurushr/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /var/www/html/t/taurushr/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

src/Entity/Price.php line 22

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Entity\Traits\ActiveTrait;
  5. use App\Entity\Traits\DeleteTrait;
  6. use App\Repository\PriceRepository;
  7. use App\Entity\Traits\SortOrderTrait;
  8. use App\Entity\Traits\TranslateTrait;
  9. use Gedmo\Mapping\Annotation as Gedmo;
  10. use App\Entity\Interfaces\DefaultEntity;
  11. use App\Entity\Traits\TitleAndContentTrait;
  12. use Gedmo\Timestampable\Traits\TimestampableEntity;
  13. /**
  14.  * @Gedmo\Loggable
  15.  */
  16. #[ORM\Entity(repositoryClass\App\Repository\PriceRepository::class)]
  17. #[ORM\HasLifecycleCallbacks]
  18. #[ORM\Table(name'price')]
  19. class Price implements DefaultEntity
  20. {
  21.     use TitleAndContentTrait;
  22.     use SortOrderTrait;
  23.     use ActiveTrait;
  24.     use DeleteTrait;
  25.     use TimestampableEntity;
  26.     use TranslateTrait;
  27.     #[ORM\Column(name'id'type'integer')]
  28.     #[ORM\Id]
  29.     #[ORM\GeneratedValue(strategy'AUTO')]
  30.     private readonly int $id;
  31.     #[ORM\Column(type'string'length255nullabletrue)]
  32.     private $price;
  33.     #[ORM\Column(type'string'length255nullabletrue)]
  34.     private $unit;
  35.     #[ORM\ManyToOne(targetEntityServiceCategory::class)]
  36.     #[ORM\JoinColumn(nullablefalse)]
  37.     private $serviceCategory;
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getPrice(): ?string
  43.     {
  44.         return $this->price;
  45.     }
  46.     public function setPrice(?string $price): self
  47.     {
  48.         $this->price $price;
  49.         return $this;
  50.     }
  51.     public function getUnit(): ?string
  52.     {
  53.         return $this->unit;
  54.     }
  55.     public function setUnit(?string $unit): self
  56.     {
  57.         $this->unit $unit;
  58.         return $this;
  59.     }
  60.     public function getServiceCategory(): ?ServiceCategory
  61.     {
  62.         return $this->serviceCategory;
  63.     }
  64.     public function setServiceCategory(?ServiceCategory $serviceCategory): self
  65.     {
  66.         $this->serviceCategory $serviceCategory;
  67.         return $this;
  68.     }
  69. }