src/Chain.php
public function on($class)
    {
        $this->instance = is_string($class) ? $this->container !== null ? $this->container->make($class) : new $class : $class;
        
        return $this;
    }
public function on($class)
    {
        $this->instance = is_string($class) ? $this->container !== null ? $this->container->make($class) : new $class : $class;
        
        return $this;
    }
public function on ( $ class ) { $ this -> instance = is_string ( $ class ) ? $ this -> container !== null ? $ this -> container -> make ( $ class ) : new $ class : $ class ; return $ this ; }
Specify Class or Class Instance to chain methods on.

@param  string|object $class Class or Class Instance to chain methods on.
@return CupOfTea\Chain\Chain The Chain object.
Specify Class or Class Instance to chain methods on .