Skip to content

PropertyCommand

Abstract class for constructing property mappings.

Example: final class CreatePostCommand extends PropertyCommand { public PostId $postId; }

$command = new CreatePostCommand(['postId' => new PostId()]); $odin->execute($command);

Methods

__construct

public __construct(array $data = []): mixed

Parameters:

Parameter Type Description
$data array

Throws:



Automatically generated on 2025-10-13