for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Inktale\Api\Params;
class ArtworkCreationParams
{
/**
* Download URL to the original image
*
* @var string
*/
public $imageUrl;
* Public name
public $name;
* Should artwork be published
* @var bool
public $publish = false;
* Optional description
public $description;
* Optional List of keywords (up to 10 values)
* @var string[]
public $keywords = [];
* List of products that should
* @var array [productType => profit, ..]
private $products = [];
* Add a product to be created
* @param string $productType
* @param float $profit
public function addProduct($productType, $profit)
$this->products[$productType] = $profit;
}
* Get list of products added
* @return array [productType => profit, ..]
public function getProducts()
return $this->products;