Skip to content

Commit 2d49e02

Browse files
committed
Removed unused property
1 parent c65eb40 commit 2d49e02

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

tests/Gedmo/Sluggable/Fixture/TransArticleManySlug.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Gedmo\Tests\Sluggable\Fixture;
1313

14-
use Doctrine\Common\Collections\ArrayCollection;
15-
use Doctrine\Common\Collections\Collection;
1614
use Doctrine\DBAL\Types\Types;
1715
use Doctrine\ORM\Mapping as ORM;
1816
use Gedmo\Mapping\Annotation as Gedmo;
@@ -37,11 +35,6 @@ class TransArticleManySlug implements Sluggable, Translatable
3735
#[ORM\Column(type: Types::INTEGER)]
3836
private $id;
3937

40-
/**
41-
* @var Collection<int, Comment>
42-
*/
43-
private $comments;
44-
4538
/**
4639
* @var int|null
4740
*/
@@ -106,25 +99,6 @@ class TransArticleManySlug implements Sluggable, Translatable
10699
#[Gedmo\Locale]
107100
private $locale;
108101

109-
public function __construct()
110-
{
111-
$this->comments = new ArrayCollection();
112-
}
113-
114-
public function addComment(Comment $comment): void
115-
{
116-
$comment->setArticle($this);
117-
$this->comments[] = $comment;
118-
}
119-
120-
/**
121-
* @return Collection<int, Comment>
122-
*/
123-
public function getComments(): Collection
124-
{
125-
return $this->comments;
126-
}
127-
128102
public function setPage(?int $page): void
129103
{
130104
$this->page = $page;

0 commit comments

Comments
 (0)