Lines Matching defs:method
33 * @param string $method OPTIONAL Request method (use const's) (default = self::GET)
38 public function __construct(string $path, string $method = self::GET, $data = [], array $query = [], ?Connection $connection = null, string $contentType = self::DEFAULT_CONTENT_TYPE)
41 $this->setMethod($method);
57 * Sets the request method. Use one of the for consts.
61 public function setMethod(string $method)
63 return $this->setParam('method', $method);
67 * Get request method.
71 return $this->getParam('method');
202 * @deprecated since version 7.1.3, use the "__toString()" method or cast to string instead.
208 \trigger_deprecation('ruflin/elastica', '7.1.3', 'The "%s()" method is deprecated, use "__toString()" or cast to string instead. It will be removed in 8.0.', __METHOD__);