CreationMessage Class

class CreationMessage

Represents a creation message

Implements ItemInterface

__construct(string $name, ?array $parameters = null)

Create a new CreationMessage

Parameters:
  • $name (string) – The object name

  • $parameters (list) – Message parameter(s)

Returns:

A new CreationMessage instance

Return type:

CreationMessage

withComment(string $comment)

Set a comment for the CreationMessage

Parameters:
  • $comment (string) – The comment

Returns:

A new instance of CreationMessage with the comment

Return type:

CreationMessage