You are here

public function VoteResultInterface::setFunction in Voting API 8.3

Sets the function to apply to the numbers.

Parameters

string $function: The function name.

Return value

$this

1 method overrides VoteResultInterface::setFunction()
VoteResult::setFunction in src/Entity/VoteResult.php
Sets the function to apply to the numbers.

File

src/VoteResultInterface.php, line 119

Class

VoteResultInterface
Provides an interface defining a vote entity.

Namespace

Drupal\votingapi

Code

public function setFunction($function);