File tree Expand file tree Collapse file tree 10 files changed +47
-10
lines changed
Expand file tree Collapse file tree 10 files changed +47
-10
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * PostMeta class.
4+ *
5+ * @since 0.3.3
6+ */
7+
8+ namespace Required \Common \Contracts ;
9+
10+ /**
11+ * Class used to implement post meta.
12+ *
13+ * @since 0.3.3
14+ */
15+ interface PostMeta {
16+ }
Original file line number Diff line number Diff line change 1313 * @since 0.3.2
1414 */
1515interface Taxonomy {
16-
1716}
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * TermMeta class.
4+ *
5+ * @since 0.3.3
6+ */
7+
8+ namespace Required \Common \Contracts ;
9+
10+ /**
11+ * Class used to implement term meta.
12+ *
13+ * @since 0.3.3
14+ */
15+ interface TermMeta {
16+ }
Original file line number Diff line number Diff line change 99
1010namespace Required \Common \Legacy ;
1111
12+ use Required \Common \Contracts \PostMeta as PostMetaInterface ;
1213use Required \Common \Contracts \Registrable ;
1314
1415/**
1516 * Class used to implement post meta.
1617 *
1718 * @since 0.1.0
1819 */
19- abstract class PostMeta implements Registrable {
20+ abstract class PostMeta implements Registrable, PostMetaInterface {
2021
2122 /**
2223 * Post meta key.
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 \TermMeta as TermMetaInterface ;
1314
1415/**
1516 * Class used to implement term meta.
1617 *
1718 * @since 0.1.0
1819 */
19- abstract class TermMeta implements Registrable {
20+ abstract class TermMeta implements Registrable, TermMetaInterface {
2021
2122 /**
2223 * Term meta key.
Original file line number Diff line number Diff line change 1010namespace Required \Common ;
1111
1212use Required \Common \Args \PostMeta as PostMetaArgs ;
13+ use Required \Common \Contracts \PostMeta as PostMetaInterface ;
1314use Required \Common \Contracts \Registrable ;
1415
1516/**
1617 * Class used to implement post meta.
1718 *
1819 * @since 0.1.0
1920 */
20- abstract class PostMeta implements Registrable {
21+ abstract class PostMeta implements Registrable, PostMetaInterface {
2122
2223 /**
2324 * Post meta key.
Original file line number Diff line number Diff line change 1010namespace Required \Common ;
1111
1212use Required \Common \Args \PostType as PostTypeArgs ;
13+ use Required \Common \Contracts \PostType as PostTypeInterface ;
1314use Required \Common \Contracts \Registrable ;
1415
1516/**
1617 * Class used to implement custom post types.
1718 *
1819 * @since 0.1.0
1920 */
20- abstract class PostType implements Registrable {
21+ abstract class PostType implements Registrable, PostTypeInterface {
2122
2223 public const NAME = 'post ' ;
2324
Original file line number Diff line number Diff line change 1111
1212use Required \Common \Args \Taxonomy as TaxonomyArgs ;
1313use Required \Common \Contracts \Registrable ;
14+ use Required \Common \Contracts \Taxonomy as TaxonomyInterface ;
1415
1516/**
1617 * Class used to implement custom taxonomies.
1718 *
1819 * @since 0.1.0
1920 */
20- abstract class Taxonomy implements Registrable {
21+ abstract class Taxonomy implements Registrable, TaxonomyInterface {
2122
2223 public const NAME = 'category ' ;
2324
Original file line number Diff line number Diff line change 1111
1212use Required \Common \Args \TermMeta as TermMetaArgs ;
1313use Required \Common \Contracts \Registrable ;
14+ use Required \Common \Contracts \TermMeta as TermMetaInterface ;
1415
1516/**
1617 * Class used to implement term meta.
1718 *
1819 * @since 0.1.0
1920 */
20- abstract class TermMeta implements Registrable {
21+ abstract class TermMeta implements Registrable, TermMetaInterface {
2122
2223 /**
2324 * Term meta key.
Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ abstract class TermMetaAdminUI implements Registrable {
2121 /**
2222 * The taxonomy.
2323 *
24- * @var \Required\Common\Taxonomy
24+ * @var \Required\Common\Contracts\ Taxonomy
2525 */
2626 protected $ taxonomy ;
2727
2828 /**
2929 * The term meta.
3030 *
31- * @var \Required\Common\TermMeta
31+ * @var \Required\Common\Contracts\ TermMeta
3232 */
3333 protected $ term_meta ;
3434
@@ -38,7 +38,7 @@ abstract class TermMetaAdminUI implements Registrable {
3838 * @since 0.1.0
3939 *
4040 * @param \Required\Common\Contracts\Taxonomy $taxonomy The taxonomy.
41- * @param \Required\Common\TermMeta $term_meta The term meta.
41+ * @param \Required\Common\Contracts\ TermMeta $term_meta The term meta.
4242 */
4343 public function __construct ( Taxonomy $ taxonomy , TermMeta $ term_meta ) {
4444 $ this ->taxonomy = $ taxonomy ;
You can’t perform that action at this time.
0 commit comments