2 changed files with 56 additions and 6 deletions
@ -0,0 +1,40 @@ |
|||
<?php |
|||
|
|||
namespace RouterOS\Interfaces; |
|||
|
|||
/** |
|||
* Interface QueryInterface |
|||
* @package RouterOS\Interfaces |
|||
* @since 0.2 |
|||
*/ |
|||
interface QueryInterface |
|||
{ |
|||
/** |
|||
* Append to array yet another attribute of query |
|||
* |
|||
* @param string $word |
|||
* @return $this |
|||
*/ |
|||
public function add(string $word): self; |
|||
|
|||
/** |
|||
* Get attributes array of current query |
|||
* |
|||
* @return array |
|||
*/ |
|||
public function getAttributes(): array; |
|||
|
|||
/** |
|||
* Get endpoint of current query |
|||
* |
|||
* @return string |
|||
*/ |
|||
public function getEndpoint(): string; |
|||
|
|||
/** |
|||
* Build body of query |
|||
* |
|||
* @return array |
|||
*/ |
|||
public function getQuery(): array; |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue