Service

Implements \Kocuj\Di\ArgumentParser\ArgumentParserInterface

Service argument parser for service

package

Kocuj\Di\ArgumentParser\Service

Methods

Constructor

__construct(\Kocuj\Di\Container\ContainerInterface $container, string $id, array $argument) 
Throws
\Kocuj\Di\ArgumentParser\Exception

Arguments

$container

\Kocuj\Di\Container\ContainerInterface

Dependency injection container for services

$id

string

Service identifier

$argument

array

Service argument to parse

Parse service argument and return argument to service constructor

parse() : mixed
see \Kocuj\Di\ArgumentParser\ArgumentParserInterface::parse()
Throws
\Kocuj\Di\ArgumentParser\Exception

Response

mixed

Parsed argument

Properties

Dependency injection container for services

container : \Kocuj\Di\Container\ContainerInterface

Service identifier

id : string
var

Type(s)

string

Service argument to parse

argument : array
var

Type(s)

array