TYPO3  7.6
ClassInfo.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
21 class ClassInfo
22 {
28  private $className;
29 
44 
51  private $injectMethods;
52 
60 
66  private $isSingleton = false;
67 
73  private $isInitializeable = false;
74 
83  public function __construct($className, array $constructorArguments, array $injectMethods, $isSingleton = false, $isInitializeable = false, array $injectProperties = array())
84  {
85  $this->className = $className;
86  $this->constructorArguments = $constructorArguments;
87  $this->injectMethods = $injectMethods;
88  $this->injectProperties = $injectProperties;
89  $this->isSingleton = $isSingleton;
90  $this->isInitializeable = $isInitializeable;
91  }
92 
98  public function getClassName()
99  {
100  return $this->className;
101  }
102 
108  public function getConstructorArguments()
109  {
111  }
112 
118  public function getInjectMethods()
119  {
120  return $this->injectMethods;
121  }
122 
128  public function getInjectProperties()
129  {
131  }
132 
138  public function getIsSingleton()
139  {
140  return $this->isSingleton;
141  }
142 
148  public function getIsInitializeable()
149  {
151  }
152 
158  public function hasInjectMethods()
159  {
160  return !empty($this->injectMethods);
161  }
162 
166  public function hasInjectProperties()
167  {
168  return !empty($this->injectProperties);
169  }
170 }