ILIAS  release_8 Revision v8.23
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 string $name;
26  protected string $property_name;
27  protected string $main_class;
28  protected array $alternative_classes = [];
29  protected array $dic_service_method = [];
30 
31  public function __construct(string $name, string $main_class, array $dic_service_method, string $propery_name)
32  {
33  $this->name = $name;
34  $this->main_class = $main_class;
35  $this->dic_service_method = $dic_service_method;
36  $this->property_name = $propery_name;
37  }
38 
39  public function setAlternativeClasses(array $alternative_classes): void
40  {
41  $this->alternative_classes = $alternative_classes;
42  }
43 
44  public function getName(): string
45  {
46  return $this->name;
47  }
48 
49  public function getMainClass(): string
50  {
51  return $this->main_class;
52  }
53 
54  public function getAlternativeClasses(): array
55  {
57  }
58 
59  public function getDicServiceMethod(): array
60  {
62  }
63 
64  public function getPropertyName(): string
65  {
66  return $this->property_name;
67  }
68 }
setAlternativeClasses(array $alternative_classes)
Definition: DICMember.php:39
__construct(string $name, string $main_class, array $dic_service_method, string $propery_name)
Definition: DICMember.php:31