for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AmaTeam\ElasticSearch\Mapping\Type\Parameter;
use AmaTeam\ElasticSearch\API\Mapping\Type\ParameterInterface;
abstract class AbstractParameter implements ParameterInterface
{
private static $instance;
public function getFriendlyId(): string
return $this->getId();
}
public static function getInstance()
if (!static::$instance) {
$instance
static
self
static::$instance = new static();
return static::$instance;