Requirement Class

class Requirement

Represents an requirement

Implements RelatableInterface

__construct(Type $type, string $name, string $id, string $text, Risk $risk, VerificationMethod $verificationMethod)

Creates an Requirement

Parameters:
  • $type (Type) – The SysML requirement type

  • $name (string) – The requirement name

  • $id (string) – The requirement id

  • $text (string) – Text summarising the requirement

  • $risk (Risk) – The SysML risk level

  • $verificationMethod (VerificationMethod) – The SysML verification method

Returns:

A new instance of Requirement

Return type:

Requirement