Issues (51)

tests/Blog/Model/Post.php (3 issues)

Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace EcodevTests\Felix\Blog\Model;
6
7
use Doctrine\ORM\Mapping as ORM;
8
9
/**
10
 * A blog post with title and body.
11
 */
12
#[ORM\Entity(repositoryClass: 'EcodevTests\Felix\Blog\Repository\PostRepository')]
13
final class Post extends AbstractModel
14
{
15
    #[ORM\Column(type: 'string', length: 50, options: ['default' => ''])]
16
    private string $title = '';
0 ignored issues
show
The private property $title is not used, and could be removed.
Loading history...
17
18
    #[ORM\Column(type: 'text')]
19
    private string $body = '';
0 ignored issues
show
The private property $body is not used, and could be removed.
Loading history...
20
21
    #[ORM\ManyToOne(targetEntity: 'EcodevTests\Felix\Blog\Model\User', inversedBy: 'posts')]
22
    private User $user;
0 ignored issues
show
The private property $user is not used, and could be removed.
Loading history...
23
}
24