diff --git a/404.html b/404.html index cea40512..3fe3e31a 100644 --- a/404.html +++ b/404.html @@ -4,7 +4,7 @@
If your business logic necessitates that the file is mandatory to an entity, you
can omit the ?
in the property type hint:
use Rekalogika\Contracts\File\FileInterface;
use Rekalogika\File\Association\Attribute\WithFileAssociation;
use Rekalogika\File\Association\Attribute\AsFileAssociation;
#[WithFileAssociation]
class Product
{
#[AsFileAssociation]
private FileInterface $image = null;
}
use Rekalogika\Contracts\File\FileInterface;
use Rekalogika\File\Association\Attribute\WithFileAssociation;
use Rekalogika\File\Association\Attribute\AsFileAssociation;
#[WithFileAssociation]
class Product
{
#[AsFileAssociation]
private FileInterface $image;
}
Read more about mandatory files in the chapter Mandatory File.