🎉 initial commit

This commit is contained in:
2024-10-07 22:58:27 +02:00
commit d3eccf99f0
824 changed files with 16401 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?php
namespace Application\Generator;
use Application\Generator\WebsiteObjectGenerator;
class Image extends WebsiteObjectGenerator
{
public function __construct(protected readonly string $seed)
{
parent::__construct($seed);
}
public function getImage(int $width = 1280, int $height = 720): array
{
return [
'src' => 'https://picsum.photos/seed/' . $this->seed . "/$width/$height",
'width' => $width,
'height' => $height,
'alt' => $this->getGenerator()->sentence(),
];
}
}