File tree Expand file tree Collapse file tree 5 files changed +40
-4
lines changed
Expand file tree Collapse file tree 5 files changed +40
-4
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * PostType class.
4+ *
5+ * @since 0.3.2
6+ */
7+
8+ namespace Required \Common \Contracts ;
9+
10+ /**
11+ * Class used to implement post types.
12+ *
13+ * @since 0.3.2
14+ */
15+ interface PostType {
16+ }
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * Taxonomy class.
4+ *
5+ * @since 0.3.2
6+ */
7+
8+ namespace Required \Common \Contracts ;
9+
10+ /**
11+ * Class used to implement taxonomies.
12+ *
13+ * @since 0.3.2
14+ */
15+ interface Taxonomy {
16+
17+ }
Original file line number Diff line number Diff line change 99
1010namespace Required \Common \Legacy ;
1111
12+ use Required \Common \Contracts \PostType as PostTypeInterface ;
1213use Required \Common \Contracts \Registrable ;
1314
1415/**
1516 * Class used to implement custom post types.
1617 *
1718 * @since 0.1.0
1819 */
19- abstract class PostType implements Registrable {
20+ abstract class PostType implements Registrable, PostTypeInterface {
2021
2122 public const NAME = 'post ' ;
2223
Original file line number Diff line number Diff line change 1010namespace Required \Common \Legacy ;
1111
1212use Required \Common \Contracts \Registrable ;
13+ use Required \Common \Contracts \Taxonomy as TaxonomyInterface ;
1314
1415/**
1516 * Class used to implement custom taxonomies.
1617 *
1718 * @since 0.1.0
1819 */
19- abstract class Taxonomy implements Registrable {
20+ abstract class Taxonomy implements Registrable, TaxonomyInterface {
2021
2122 public const NAME = 'category ' ;
2223
Original file line number Diff line number Diff line change 88namespace Required \Common ;
99
1010use Required \Common \Contracts \Registrable ;
11+ use Required \Common \Contracts \Taxonomy ;
1112use WP_Term ;
1213
1314/**
@@ -36,8 +37,8 @@ abstract class TermMetaAdminUI implements Registrable {
3637 *
3738 * @since 0.1.0
3839 *
39- * @param \Required\Common\Taxonomy $taxonomy The taxonomy.
40- * @param \Required\Common\TermMeta $term_meta The term meta.
40+ * @param \Required\Common\Contracts\ Taxonomy $taxonomy The taxonomy.
41+ * @param \Required\Common\TermMeta $term_meta The term meta.
4142 */
4243 public function __construct ( Taxonomy $ taxonomy , TermMeta $ term_meta ) {
4344 $ this ->taxonomy = $ taxonomy ;
You can’t perform that action at this time.
0 commit comments