You are here

public function VoteResult::setFunction in Voting API 8.3

Sets the function to apply to the numbers.

Parameters

string $function: The function name.

Return value

$this

Overrides VoteResultInterface::setFunction

File

src/Entity/VoteResult.php, line 135

Class

VoteResult
Defines the VoteResult entity.

Namespace

Drupal\votingapi\Entity

Code

public function setFunction($function) {
  return $this
    ->set('function', $function);
}