| 1 | <?php |
||
| 17 | class Wordlift_Publisher_Ajax_Adapter { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The {@link Wordlift_Publisher_Service} instance. |
||
| 21 | * |
||
| 22 | * @since 3.11.0 |
||
| 23 | * @access private |
||
| 24 | * @var Wordlift_Publisher_Service $publisher_service The {@link Wordlift_Publisher_Service} instance. |
||
| 25 | */ |
||
| 26 | private $publisher_service; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Create a {@link Wordlift_Publisher_Ajax_Adapter} instance. |
||
| 30 | * |
||
| 31 | * @since 3.11.0 |
||
| 32 | * |
||
| 33 | * @param \Wordlift_Publisher_Service $publisher_service The {@link Wordlift_Publisher_Service} instance. |
||
| 34 | */ |
||
| 35 | function __construct( $publisher_service ) { |
||
| 40 | |||
| 41 | /** |
||
| 42 | * The publisher AJAX action. This function is hook to the `wl_publisher` |
||
| 43 | * action. |
||
| 44 | * |
||
| 45 | * @since 3.11.0 |
||
| 46 | */ |
||
| 47 | public function publisher() { |
||
| 69 | |||
| 70 | } |
||
| 71 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.