Lines Matching refs:string
32 * @param string $path Request path
33 * @param string $method OPTIONAL Request method (use const's) (default = self::GET)
34 * @param array|string $data OPTIONAL Data array
36 * @param string $contentType Content-Type sent with this request
38 public function __construct(string $path, string $method = self::GET, $data = [], array $query = [], ?Connection $connection = null, string $contentType = self::DEFAULT_CONTENT_TYPE)
51 public function __toString(): string
61 public function setMethod(string $method)
69 public function getMethod(): string
77 * @param array|string $data Request data
89 * @return array|string Request data
101 public function setPath(string $path)
109 public function getPath(): string
159 public function setContentType(string $contentType)
167 public function getContentType(): string
202 * @deprecated since version 7.1.3, use the "__toString()" method or cast to string instead.
204 * @return string
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__);
210 return (string) $this;