PHP Class Pressbooks\Container

Show file Open project: pressbooks/pressbooks Class Usage Examples

Protected Properties

Property Type Description
$pimple Pimple\Container

Public Methods

Method Description
get ( string $var ) : mixed
getPimple ( ) : Pimple\Container
init ( Pimple\Container $pimple = null ) If you add services, don't forget to also edit config/.phpstorm.meta.php
set ( string $key, mixed $val, string $type = null )
setPimple ( Pimple\Container $pimple )

Method Details

get() static public method

static public get ( string $var ) : mixed
$var string
return mixed

getPimple() static public method

static public getPimple ( ) : Pimple\Container
return Pimple\Container

init() static public method

If you add services, don't forget to also edit config/.phpstorm.meta.php
static public init ( Pimple\Container $pimple = null )
$pimple Pimple\Container

set() static public method

static public set ( string $key, mixed $val, string $type = null )
$key string
$val mixed
$type string (optional)

setPimple() public static method

public static setPimple ( Pimple\Container $pimple )
$pimple Pimple\Container

Property Details

$pimple protected static property

protected static Container,Pimple $pimple
return Pimple\Container