pai-sklep/app/Faker/CategoryNameProvider.php

33 lines
552 B
PHP
Raw Permalink Normal View History

2021-12-08 23:39:53 +01:00
<?php
namespace App\Faker;
use Faker\Provider\Base;
class CategoryNameProvider extends Base
{
protected static $categories = [
"żywioły",
"wody",
"pierwiastki",
"racje",
"plastik",
"naturalne",
"rzeczywiste",
"A|B",
"moduły node",
"kontenery",
"filmy",
"bajki",
"maszyny",
"challenge",
"śmieci",
];
public function categoryName(): string
{
return static::randomElement(static::$categories);
}
}