public function __construct(array $post_types, Nonce $nonce) { $this->post_types = $post_types; $this->nonce = $nonce; }