for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AbterPhp\Framework\TestDouble\Domain\Entity;
use AbterPhp\Framework\Domain\Entities\IStringerEntity;
abstract class FooBarStub implements IStringerEntity
{
/** @var string */
protected $foo;
protected $bar;
/**
* @return string
*/
public function getId()
return $this->foo;
}
* @param string $id
public function setId($id)
$this->id = $id;
id
public function getFoo(): string
* @param string $foo
*
* @return $this
public function setFoo(string $foo): self
$this->foo = $foo;
return $this;
public function getBar(): string
return $this->bar;
* @param string $bar
public function setBar(string $bar): self
$this->bar = $bar;
public function __toString(): string
public function toJSON(): string
return json_encode(
[
'foo' => $this->getFoo(),
'bar' => $this->getBar(),
]
);