| 1 | <?php |
||
| 10 | class Cached_Term_Count implements Term_Count { |
||
| 11 | |||
| 12 | const TRANSIENT_KEY = '_wl_vocabulary_term_count_transient'; |
||
| 13 | /** |
||
| 14 | * @var Term_Count |
||
| 15 | */ |
||
| 16 | private $term_count; |
||
| 17 | |||
| 18 | |||
| 19 | /** |
||
| 20 | * Cached_Term_Count constructor. |
||
| 21 | * |
||
| 22 | * @param $term_count Term_Count |
||
| 23 | */ |
||
| 24 | public function __construct( $term_count ) { |
||
| 27 | |||
| 28 | public function get_term_count() { |
||
| 40 | } |
||
| 41 |