seregazhuk\PinterestBot\Factories\PinterestBot::create PHP Méthode

create() public static méthode

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

Usage Example

Exemple #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