for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace drupol\Yaroc\Plugin\Method;
use drupol\Yaroc\Plugin\AbstractProvider;
use drupol\Yaroc\Plugin\ProviderInterface;
/**
* Class Provider.
*/
class Provider extends AbstractProvider
{
* @var string
private $resource;
* @param string $resource
*
* @return \drupol\Yaroc\Plugin\ProviderInterface
public static function withResource(string $resource) :ProviderInterface
$clone = new static();
$clone->resource = $resource;
return $clone;
}
* @return string
public function getResource(): string
return $this->resource;