ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
DICMember.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\CI\Rector\DIC;
22 
23 class DICMember
24 {
25  protected array $alternative_classes = [];
26 
30  public function __construct(
31  protected string $name,
32  protected string $main_class,
33  protected array $dic_service_method,
34  protected string $property_name
35  ) {
36  }
37 
41  public function setAlternativeClasses(array $alternative_classes): void
42  {
43  $this->alternative_classes = $alternative_classes;
44  }
45 
46  public function getName(): string
47  {
48  return $this->name;
49  }
50 
51  public function getMainClass(): string
52  {
53  return $this->main_class;
54  }
55 
59  public function getAlternativeClasses(): array
60  {
62  }
63 
67  public function getDicServiceMethod(): array
68  {
69  return $this->dic_service_method;
70  }
71 
72  public function getPropertyName(): string
73  {
74  return $this->property_name;
75  }
76 }
setAlternativeClasses(array $alternative_classes)
Definition: DICMember.php:41
__construct(protected string $name, protected string $main_class, protected array $dic_service_method, protected string $property_name)
Definition: DICMember.php:30