for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace seregazhuk\PinterestBot\Factories;
use seregazhuk\PinterestBot\Bot;
use seregazhuk\PinterestBot\Api\Request;
use seregazhuk\PinterestBot\Api\CurlHttpClient;
use seregazhuk\PinterestBot\Api\ProvidersContainer;
class PinterestBot
{
/**
* Initializes Bot instance and all its dependencies.
*
* @return Bot
*/
public static function create()
$request = new Request(new CurlHttpClient());
$providersContainer = new ProvidersContainer($request);
return new Bot($providersContainer);
}
private function __construct()
private function __clone()