Isswp101\Persimmon\Elasticsearch\Response::getId PHP Method

getId() public method

public getId ( ) : mixed
return mixed
    public function getId()
    {
        return $this->id;
    }

Usage Example

 /**
  * @param array $response
  * @return $this
  */
 public function fillByResponse(array $response)
 {
     $res = new Response($response);
     $this->fill($res->getSource());
     $this->setId($res->getId());
     return $this;
 }