| 1 |
<?php |
| 2 |
/** |
| 3 |
* Link Suggestion class |
| 4 |
* |
| 5 |
* @package Parsely |
| 6 |
* @since 3.14.0 |
| 7 |
*/ |
| 8 |
|
| 9 |
declare(strict_types=1); |
| 10 |
|
| 11 |
namespace Parsely\RemoteAPI\ContentSuggestions; |
| 12 |
|
| 13 |
/** |
| 14 |
* Link Suggestion class |
| 15 |
* |
| 16 |
* Represents a link suggestion returned by the Suggest Links API. |
| 17 |
* |
| 18 |
* @since 3.14.0 |
| 19 |
*/ |
| 20 |
class Link_Suggestion { |
| 21 |
/** |
| 22 |
* The URL of the suggested link. |
| 23 |
* |
| 24 |
* @var string The URL of the suggested link. |
| 25 |
*/ |
| 26 |
public $href; |
| 27 |
|
| 28 |
/** |
| 29 |
* The title of the suggested link. |
| 30 |
* |
| 31 |
* @var string The title of the suggested link. |
| 32 |
*/ |
| 33 |
public $title; |
| 34 |
|
| 35 |
/** |
| 36 |
* The text of the suggested link. |
| 37 |
* |
| 38 |
* @var string The text of the suggested link. |
| 39 |
*/ |
| 40 |
public $text; |
| 41 |
|
| 42 |
/** |
| 43 |
* The offset/position for the suggested link. |
| 44 |
* |
| 45 |
* @var int The offset/position for the suggested link. |
| 46 |
*/ |
| 47 |
public $offset; |
| 48 |
} |
| 49 |
|