| 1 | <?php |
||
| 7 | class Sync_Term_Adapter extends Abstract_Sync_Object_Adapter { |
||
| 8 | /** |
||
| 9 | * @var int |
||
| 10 | */ |
||
| 11 | private $term_id; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Sync_Term_Adapter constructor. |
||
| 15 | * |
||
| 16 | * @param int $term_id |
||
| 17 | * |
||
| 18 | * @throws \Exception |
||
| 19 | */ |
||
| 20 | function __construct( $term_id ) { |
||
| 25 | |||
| 26 | function is_published() { |
||
| 29 | |||
| 30 | function is_public() { |
||
| 35 | |||
| 36 | } |
||
| 37 |
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.