Skip to content

public Vote::addTags

Read it at the source

Description

php
public Vote->addTags ( array|string $tags ): bool

Add tag(s) on this Vote.

Parameter

tags: array|string

Tag(s) are non-numeric alphanumeric string. They can be added by string separated by commas or an array. Tags will be trimmed.

Return value

(bool) In case of success, return TRUE

Throws:

  • CondorcetPHP\Condorcet\Throwable\VoteInvalidFormatException


Tutorial

Released under the MIT License.