ICanBoogie
  • Documentation
  • API Reference
  • Service master
Namespaces
  • ICanBoogie
    • Service
Classes
  • ServiceProvider
  • ServiceReference

Class ServiceReference

A representation of a service reference.

Can be used to resolve the service or invoke it with some arguments.

Final
Namespace: ICanBoogie\Service
Located at ServiceReference.php

Methods summary

public __construct( string $id )

Parameters

$id
Service identifier
public __toString( void ) : string

Returns

string
public __invoke( ... $args ) : mixed

Parameters

$args
$args

Returns

mixed
public __call( string $name, array $arguments )

Parameters

$name
$arguments
public resolve( void ) : object

Returns

object
Service master – Check on GitHub – API documentation generated by ApiGen