/** * Constructor. Set up the properties. * * @param PostType $post_type Post type model. * @param MetaBox $meta_box Meta box model. */ public function __construct(PostType $post_type, MetaBox $meta_box) { $this->post_type = $post_type->get_post_type(); $this->meta_key = $meta_box->get_meta_key(); }