You are here

public function Definition::setClass in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Definition.php \Symfony\Component\DependencyInjection\Definition::setClass()

Sets the service class.

Parameters

string $class The service class:

Return value

Definition The current instance

1 call to Definition::setClass()
DefinitionDecorator::setClass in vendor/symfony/dependency-injection/DefinitionDecorator.php
Sets the service class.
1 method overrides Definition::setClass()
DefinitionDecorator::setClass in vendor/symfony/dependency-injection/DefinitionDecorator.php
Sets the service class.

File

vendor/symfony/dependency-injection/Definition.php, line 229

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function setClass($class) {
  $this->class = $class;
  return $this;
}