function ValidationResult::__get

Same name and namespace in other branches
  1. 11.x core/modules/package_manager/src/ValidationResult.php \Drupal\package_manager\ValidationResult::__get()

Implements magic ::__get() method.

File

core/modules/package_manager/src/ValidationResult.php, line 57

Class

ValidationResult
A value object to contain the results of a validation.

Namespace

Drupal\package_manager

Code

public function __get(string $name) : mixed {
  return match ($name) {  'messages' => $this->messages,
  
  };
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.