You are here

public function DeprecationMessage::__construct in Upgrade Status 8.3

Same name and namespace in other branches
  1. 8.2 src/DeprecationMessage.php \Drupal\upgrade_status\DeprecationMessage::__construct()

Constructs a new deprecation message.

Parameters

string $message: The message.

string $file: The file related to the deprecation message.

int $line: The line associated to the deprecation message.

File

src/DeprecationMessage.php, line 43

Class

DeprecationMessage
A value object containing a deprecation message with some metadata.

Namespace

Drupal\upgrade_status

Code

public function __construct(string $message, string $file = '', int $line = 0) {
  $this->message = $message;
  $this->file = $file;
  $this->line = $line;
}