Свойство | Type | Description | |
---|---|---|---|
$firstDependency | Some injected dependency | ||
$hasBeenInitialized | Flag which reveals if the initializeAfterPropertiesSet method has been called. | ||
$secondDependency | Some injected dependency | ||
$someProperty | Some property |
Méthode | Description | |
---|---|---|
getFirstDependency ( ) : mixed | Getter method for $firstDependency | |
getSecondDependency ( ) : mixed | Getter method for $secondDependency | |
getSomeProperty ( ) : mixed | Getter method for $someProperty | |
hasBeenInitialized ( ) : boolean | Returns the hasBeenInitialized flag | |
initializeAfterPropertiesSet ( ) : void | The object initialization method which is called after properties have been injected. | |
injectInjectOrSetMethod ( mixed $value ) : void | This setter injection method is used to check if it is preferred over the setInjectOrSetMethod() method. | |
injectSecondDependency ( object $value ) : void | A method for setter injection of a dependency which is used for checking if injection of explicitly defined dependencies (without autowiring) works. | |
methodWhichExpectsAnArrayArgument ( array $someArray ) : void | A great method which expects an array as an argument | |
setFirstDependency ( object $value ) : void | Setter method for $firstDependency | |
setInjectOrSetMethod ( mixed $value ) : void | This setter injection method is used to check if it the injectInjectOrSetMethod() is preferred over this method. | |
setSomeProperty ( mixed $value ) : void | Setter method for $someProperty | |
someFinalMethod ( ) : void | A final public function | |
throwAnException ( string $exceptionType, mixed $parameter1 = null, mixed $parameter2 = null ) : void | Throws an exception . |
Méthode | Description | |
---|---|---|
someProtectedMethod ( ) : void | Some protected method |
Méthode | Description | |
---|---|---|
somePrivateMethod ( ) : void | Some private method |
public getFirstDependency ( ) : mixed | ||
Résultat | mixed | The value of $firstDependency |
public getSecondDependency ( ) : mixed | ||
Résultat | mixed | The value of $secondDependency |
public getSomeProperty ( ) : mixed | ||
Résultat | mixed | The value of $someProperty |
public hasBeenInitialized ( ) : boolean | ||
Résultat | boolean | Returns the hasBeenInitialized flag |
public initializeAfterPropertiesSet ( ) : void | ||
Résultat | void |
public injectInjectOrSetMethod ( mixed $value ) : void | ||
$value | mixed | |
Résultat | void |
public injectSecondDependency ( object $value ) : void | ||
$value | object | An object |
Résultat | void |
public methodWhichExpectsAnArrayArgument ( array $someArray ) : void | ||
$someArray | array | Some array |
Résultat | void |
public setFirstDependency ( object $value ) : void | ||
$value | object | An object |
Résultat | void |
public setInjectOrSetMethod ( mixed $value ) : void | ||
$value | mixed | |
Résultat | void |
public setSomeProperty ( mixed $value ) : void | ||
$value | mixed | Some value |
Résultat | void |
final public someFinalMethod ( ) : void | ||
Résultat | void |
protected someProtectedMethod ( ) : void | ||
Résultat | void |
public throwAnException ( string $exceptionType, mixed $parameter1 = null, mixed $parameter2 = null ) : void | ||
$exceptionType | string | Class name of the exception to throw |
$parameter1 | mixed | First parameter to pass to the exception constructor |
$parameter2 | mixed | Second parameter to pass to the exception constructor |
Résultat | void |
protected $hasBeenInitialized |