AbstractTemplateEndpoint.php 650 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Elasticsearch\Endpoints\Indices\Template;
  3. use Elasticsearch\Endpoints\AbstractEndpoint;
  4. /**
  5. * Class AbstractTemplateEndpoint
  6. *
  7. * @category Elasticsearch
  8. * @package Elasticsearch\Endpoints\Indices\Template
  9. * @author Zachary Tong <zach@elastic.co>
  10. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
  11. * @link http://elastic.co
  12. */
  13. abstract class AbstractTemplateEndpoint extends AbstractEndpoint
  14. {
  15. /** @var string */
  16. protected $name;
  17. /**
  18. * @param $name
  19. *
  20. * @return $this
  21. */
  22. public function setName($name)
  23. {
  24. $this->name = $name;
  25. return $this;
  26. }
  27. }