for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Viktoras\Scryfall\Client\Request\Traits;
use Viktoras\Scryfall\Enums;
trait Prettifyable
{
/**
* If true, the returned JSON will be prettified. Avoid using for production code.
*
* @var string
*/
protected $pretty = Enums\Boolean::FALSE;
public function isPretty(): string
return $this->pretty;
}
public function setPretty(bool $pretty): void
$this->pretty = $pretty ? Enums\Boolean::TRUE : Enums\Boolean::FALSE;