original_string: public function add($action) {
          if ($action instanceof action_link) {
              if ($action->primary) {
                  $this->add_primary_action($action);
              } else {
                  $this->add_secondary_action($action);
              }
          } else if ($action instanceof pix_icon) {
              $this->add_primary_action($action);
          } else {
              $this->add_secondary_action($action);
          }
      }
code: public function add($action) {
          if ($action instanceof action_link) {
              if ($action->primary) {
                  $this->add_primary_action($action);
              } else {
                  $this->add_secondary_action($action);
              }
          } else if ($action instanceof pix_icon) {
              $this->add_primary_action($action);
          } else {
              $this->add_secondary_action($action);
          }
      }
code_tokens: public function add ( $ action ) { if ( $ action instanceof action_link ) { if ( $ action -> primary ) { $ this -> add_primary_action ( $ action ) ; } else { $ this -> add_secondary_action ( $ action ) ; } } else if ( $ action instanceof pix_icon ) { $ this -> add_primary_action ( $ action ) ; } else { $ this -> add_secondary_action ( $ action ) ; } }
docstring: Adds an action to this action menu.
  
  @param action_menu_link|pix_icon|string $action
docstring_tokens: Adds an action to this action menu .