Add stock items, groups and movements at a moving average cost

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-26 16:18:59 +02:00
co-authored by Claude Sonnet 5.5
parent 361a2974cf
commit 30132deb0e
81 changed files with 4968 additions and 115 deletions
@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
namespace App\Modules\Shared\Application\Contracts;
/**
* Turns an uploaded image into upright, downscaled JPEGs without metadata
* (no location), for task images and stock item images.
*/
interface ImageResizer
{
/**
* JPEG versions of the image whose longer side is at most each of the
* given sizes, or null when the file is not a readable image.
*
* @param list<int> $maxSizes
* @return list<array{bytes: string, width: int, height: int}>|null
*/
public function jpegVersions(string $path, array $maxSizes): ?array;
}