Task 5 - Refactor menu items using a loop
This commit is contained in:
parent
97d4382dd3
commit
b97482c642
4 changed files with 55 additions and 5 deletions
src/Repository
34
src/Repository/MenuItemArrayRepository.php
Normal file
34
src/Repository/MenuItemArrayRepository.php
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Repository;
|
||||
|
||||
final class MenuItemArrayRepository implements MenuItemRepository
|
||||
{
|
||||
public function findAll(): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
'title' => 'Conference',
|
||||
'is_active' => false,
|
||||
],
|
||||
[
|
||||
'title' => 'Sponsors',
|
||||
'is_active' => false,
|
||||
],
|
||||
[
|
||||
'title' => 'Community',
|
||||
'is_active' => false,
|
||||
],
|
||||
[
|
||||
'title' => 'FAQ',
|
||||
'is_active' => false,
|
||||
],
|
||||
[
|
||||
'title' => 'Register',
|
||||
'is_active' => true,
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue