First commit

This commit is contained in:
David
2026-01-06 10:46:49 -05:00
parent c6b2e3e56f
commit 3fdcee57ad
88 changed files with 12306 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
<?php
namespace MMT\DDDSharedKernel\ValueObjects;
class Price extends ValueObject
{
public function __construct(
private Money $money
)
{
if($this->money->isNegative()) {
throw new \InvalidArgumentException("The price cannot be negative");
}
}
}