mirror of
https://github.com/igorsimdyanov/php8.git
synced 2025-08-01 16:49:53 +00:00
25 lines
541 B
PHP
25 lines
541 B
PHP
<?php
|
|
namespace MVC\Models;
|
|
|
|
class Users
|
|
{
|
|
public $collection;
|
|
|
|
public function __construct(public ?array $users = null)
|
|
{
|
|
$users ??= [
|
|
new User(
|
|
'dmitry.koterov@gmail.com',
|
|
'password',
|
|
'Дмитрий',
|
|
'Котеров'),
|
|
new User(
|
|
'igorsimdyanov@gmail.com',
|
|
'password',
|
|
'Игорь',
|
|
'Симдянов')
|
|
];
|
|
$this->collection = $users;
|
|
}
|
|
}
|