<?php namespace App\Entity; use App\Repository\ServiceProductRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=ServiceProductRepository::class) */ class ServiceProduct { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $title; /** * @ORM\Column(type="text", nullable=true) */ private $timeLength; /** * @ORM\Column(type="integer", options={"default": 0}) */ private $value = 0; /** * @ORM\Column(type="text", nullable=true) */ private $content; /** * @ORM\Column(type="text", nullable=true) */ private $image; public function getId(): ?int { return $this->id; } public function getTitle(): ?string { return $this->title; } public function setTitle( string $title ): self { $this->title = $title; return $this; } public function getTimeLength(): ?string { return $this->timeLength; } public function setTimeLength( ?string $timeLength ): self { $this->timeLength = $timeLength; return $this; } public function getValue(): ?int { return $this->value; } public function setValue( int $value ): self { $this->value = $value; return $this; } public function getContent(): ?string { return $this->content; } public function setContent( ?string $content ): self { $this->content = $content; return $this; } public function getImage(): ?string { return $this->image; } public function setImage( ?string $image ): self { $this->image = $image; return $this; } }