| Total Complexity | 7 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class ArticleBuilder |
||
| 12 | { |
||
| 13 | private $author; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string[] |
||
| 17 | */ |
||
| 18 | private array $titles = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string[] |
||
| 22 | */ |
||
| 23 | private array $contents = []; |
||
| 24 | |||
| 25 | private EntityManagerInterface $em; |
||
| 26 | |||
| 27 | public function __construct(EntityManagerInterface $em) |
||
| 28 | { |
||
| 29 | $this->em = $em; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function setAuthor($author): ArticleBuilder |
||
| 36 | } |
||
| 37 | |||
| 38 | public function setTitle(string $title, string $lang): ArticleBuilder |
||
| 42 | } |
||
| 43 | |||
| 44 | public function setContent(string $content, string $lang): ArticleBuilder |
||
| 45 | { |
||
| 46 | $this->contents[$lang] = $content; |
||
| 47 | return $this; |
||
| 48 | } |
||
| 49 | |||
| 50 | public function send(): void |
||
| 66 | } |
||
| 67 | } |
||
| 68 |