for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Damax\ChargeableApi\Product;
final class FixedProductResolver implements Resolver
{
private $name;
private $price;
public function __construct(string $name, int $price)
$this->name = $name;
$this->price = $price;
}
public function resolve($request): Product
return new Product($this->name, $this->price);