for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Everlution\AjaxcomBundle\DataObject;
/**
* Class Block.
*
* @author Ivan Barlog <[email protected]>
*/
class Block
{
/** @var string */
private $id;
/** @var bool */
private $shouldRefresh = false;
public function __construct(string $id)
$this->id = $id;
}
public function getId(): string
return $this->id;
public function refresh(): Block
$this->shouldRefresh = true;
return $this;
public function shouldRefresh(): bool
return $this->shouldRefresh;