Skip to content
Snippets Groups Projects
Commit 7b57022c authored by Simonas Šerlinskas's avatar Simonas Šerlinskas
Browse files

introducing name aware trait

parent 8e6b7f67
No related branches found
No related tags found
No related merge requests found
......@@ -11,15 +11,23 @@
namespace ONGR\ElasticsearchDSL;
/**
* Interface used by builders with names.
*/
interface NamedBuilderInterface extends BuilderInterface
trait NameAwareTrait
{
private $name;
/**
* @return mixed
*/
public function getName()
{
return $this->name;
}
/**
* Returns builder name.
*
* @return string
* @param mixed $name
*/
public function getName();
public function setName($name)
{
$this->name = $name;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment