seregazhuk\PinterestBot\Factories\PinterestBot::create PHP 메소드

create() 공개 정적인 메소드

Initializes Bot instance and all its dependencies.
public static create ( ) : Bot
리턴 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