Track machine counters and maintenance with counter and time intervals

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-26 16:52:49 +02:00
co-authored by Claude Sonnet 5.5
parent aac579257a
commit 3e1c671949
53 changed files with 2636 additions and 6 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 CounterNotFound extends DomainException
{
public function __construct()
{
parent::__construct('The counter 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 InvalidMaintenanceItem extends DomainException
{
public function __construct()
{
parent::__construct('A maintenance item needs a name of 1-150 characters, positive intervals and a warning of 1-99 percent.');
}
}
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Modules\Machines\Domain\Exceptions;
use App\Modules\Shared\Domain\Exceptions\DomainException;
final class InvalidReading extends DomainException
{
public function __construct()
{
parent::__construct('A reading must be a number of zero or more with at most three decimals.');
}
}
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Modules\Machines\Domain\Exceptions;
use App\Modules\Shared\Domain\Exceptions\DomainException;
final class MaintenanceItemNeedsInterval extends DomainException
{
public function __construct()
{
parent::__construct('A maintenance item needs a counter interval, a time interval or both.');
}
}
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Modules\Machines\Domain\Exceptions;
use App\Modules\Shared\Domain\Exceptions\DomainException;
final class MaintenanceItemNotFound extends DomainException
{
public function __construct()
{
parent::__construct('The maintenance item 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 MaintenanceRecordCancelled extends DomainException
{
public function __construct()
{
parent::__construct('The maintenance record has already been cancelled.');
}
}
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Modules\Machines\Domain\Exceptions;
use App\Modules\Shared\Domain\Exceptions\DomainException;
final class MaintenanceRecordNotFound extends DomainException
{
public function __construct()
{
parent::__construct('The maintenance record was not found.');
}
}