Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
| Quotes | |
0.00% |
0 / 4 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
| getId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getQuote | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setQuote | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Entity; |
| 4 | |
| 5 | use App\Repository\QuotesRepository; |
| 6 | use Doctrine\ORM\Mapping as ORM; |
| 7 | |
| 8 | #[ORM\Entity(repositoryClass: QuotesRepository::class)] |
| 9 | class Quotes |
| 10 | { |
| 11 | #[ORM\Id] |
| 12 | #[ORM\GeneratedValue] |
| 13 | #[ORM\Column(type: 'integer')] |
| 14 | private int $id; |
| 15 | |
| 16 | #[ORM\Column(type: 'text')] |
| 17 | private string $quote; |
| 18 | |
| 19 | public function getId(): ?int |
| 20 | { |
| 21 | return $this->id; |
| 22 | } |
| 23 | |
| 24 | public function getQuote(): ?string |
| 25 | { |
| 26 | return $this->quote; |
| 27 | } |
| 28 | |
| 29 | public function setQuote(string $quote): self |
| 30 | { |
| 31 | $this->quote = $quote; |
| 32 | |
| 33 | return $this; |
| 34 | } |
| 35 | } |