Add machines with day-by-day work lists for job tasks

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-26 16:43:55 +02:00
co-authored by Claude Sonnet 5.5
parent 0de0e332b2
commit aac579257a
59 changed files with 3803 additions and 1 deletions
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Modules\Machines\Domain\Exceptions;
use App\Modules\Shared\Domain\Exceptions\DomainException;
final class InvalidCounter extends DomainException
{
public function __construct()
{
parent::__construct('A counter needs a name of 1-100 characters and a unit.');
}
}
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Modules\Machines\Domain\Exceptions;
use App\Modules\Shared\Domain\Exceptions\DomainException;
final class InvalidMachineName extends DomainException
{
public function __construct()
{
parent::__construct('A machine name must be 1-150 characters.');
}
}
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Modules\Machines\Domain\Exceptions;
use App\Modules\Shared\Domain\Exceptions\DomainException;
final class InvalidPlannedDay extends DomainException
{
public function __construct()
{
parent::__construct('The planned day must be a valid date.');
}
}
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Modules\Machines\Domain\Exceptions;
use App\Modules\Shared\Domain\Exceptions\DomainException;
final class MachineInactive extends DomainException
{
public function __construct()
{
parent::__construct('The machine is no longer in use.');
}
}
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Modules\Machines\Domain\Exceptions;
use App\Modules\Shared\Domain\Exceptions\DomainException;
final class MachineNameTaken extends DomainException
{
public function __construct()
{
parent::__construct('The machine name is already in use.');
}
}
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Modules\Machines\Domain\Exceptions;
use App\Modules\Shared\Domain\Exceptions\DomainException;
final class MachineNeedsServiceUnit extends DomainException
{
public function __construct()
{
parent::__construct('A machine needs at least one service unit that uses stock.');
}
}
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Modules\Machines\Domain\Exceptions;
use App\Modules\Shared\Domain\Exceptions\DomainException;
final class MachineNotForTask extends DomainException
{
public function __construct()
{
parent::__construct('The machine does not belong to the service unit of the task.');
}
}
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Modules\Machines\Domain\Exceptions;
use App\Modules\Shared\Domain\Exceptions\DomainException;
final class MachineNotFound extends DomainException
{
public function __construct()
{
parent::__construct('The machine was not found.');
}
}
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Modules\Machines\Domain\Exceptions;
use App\Modules\Shared\Domain\Exceptions\DomainException;
final class MachineTaskNotFound extends DomainException
{
public function __construct()
{
parent::__construct('The task was not found.');
}
}
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Modules\Machines\Domain\Exceptions;
use App\Modules\Shared\Domain\Exceptions\DomainException;
final class QueueEntryCompleted extends DomainException
{
public function __construct()
{
parent::__construct('The work list row has already been completed.');
}
}
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Modules\Machines\Domain\Exceptions;
use App\Modules\Shared\Domain\Exceptions\DomainException;
final class QueueEntryNotFound extends DomainException
{
public function __construct()
{
parent::__construct('The work list row was not found.');
}
}