src/Potter/Taxonomy/Create.php
public function assignPostType($post_types)
   {
      if (!is_array($post_types)) $post_types = [$post_types];

      foreach ($post_types as &$post_type):
         if ($post_type instanceof Type) $post_type = $post_type->getPostType();
      endforeach;

      $this->post_types = array_merge($this->post_types, $post_types);

      return $this;
   }
public function assignPostType($post_types)
   {
      if (!is_array($post_types)) $post_types = [$post_types];

      foreach ($post_types as &$post_type):
         if ($post_type instanceof Type) $post_type = $post_type->getPostType();
      endforeach;

      $this->post_types = array_merge($this->post_types, $post_types);

      return $this;
   }
@param array|string|Type $post_types

@return $this