/** * Class constructor. * * @since 0.5.0 * @param WPPTD\Components\PostType $post_type the post type component to use this handler for * @param null $query_handler only for parent class, must not be used here * @param null $action_handler only for parent class, must not be used here */ public function __construct($post_type, $query_handler = null, $action_handler = null) { parent::__construct($post_type, new PostTypeQueryHandler($post_type), new PostTypeActionHandler($post_type)); }
/** * Class constructor. * * @since 0.6.0 * @param WPPTD\Components\Taxonomy $taxonomy the taxonomy component to use this handler for * @param null $query_handler only for parent class, must not be used here * @param null $action_handler only for parent class, must not be used here */ public function __construct($taxonomy, $query_handler = null, $action_handler = null) { parent::__construct($taxonomy, new TaxonomyQueryHandler($taxonomy), new TaxonomyActionHandler($taxonomy)); }