seregazhuk\PinterestBot\Factories\PinterestBot::create PHP Method

create() public static method

Initializes Bot instance and all its dependencies.
public static create ( ) : Bot
return seregazhuk\PinterestBot\Bot
    public static function create()
    {
        $request = self::makeRequest();
        $providersContainer = new ProvidersContainer($request, new Response());
        return new Bot($providersContainer);
    }

Usage Example

示例#1
0
 protected function setUp()
 {
     $this->bot = PinterestBot::create();
     $this->reflection = new ReflectionClass($this->bot);
     $this->setReflectedObject($this->bot);
 }
All Usage Examples Of seregazhuk\PinterestBot\Factories\PinterestBot::create