*/ private $context; /** * @param array $context */ public function __construct( string $codeSlug, string $message, int $position = 0, array $context = [] ) { parent::__construct( $message ); $this->codeSlug = $codeSlug; $this->position = $position; $this->context = $context; } public function getCodeSlug(): string { return $this->codeSlug; } public function getPosition(): int { return $this->position; } /** * @return array */ public function getContext(): array { return $this->context; } }