for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Everlution\AjaxcomBundle\Mutation;
use Everlution\Ajaxcom\Handler;
/**
* Class RemoveBlocks.
*
* @author Ivan Barlog <[email protected]>
*/
class RemoveBlocks implements MutatorInterface
{
/** @var string[] */
private $removeBlocks = [];
public function mutate(Handler $ajax): Handler
foreach ($this->removeBlocks as $selector) {
$ajax->container($selector)->remove();
}
return $ajax;
public function add(string $selector): self
$this->removeBlocks[] = $selector;
return $this;