You are here

public function Spec::__construct in Little helpers 7.2

Construct a new instance.

See the property descriptions for more information about the data.

File

src/Services/Spec.php, line 85

Class

Spec
A class instantiation spec.

Namespace

Drupal\little_helpers\Services

Code

public function __construct(string $class, string $constructor = NULL, array $arguments = [], array $calls = []) {
  $this->class = $class;
  $this->constructor = $constructor;
  $this->arguments = $arguments;
  $this->calls = $calls;
}