properties = $data; } } /** * Returns the result passcode string. * * @return ?string */ public function getPasscode() { return $this->passcode; } /** * Sets the passcode result string. * * @param string $passcode The passcode to set. * * @return self */ public function setPasscode(string $passcode) { $this->passcode = $passcode; return $this; } /** * Returns the HTML result output string. * * @return ?string */ public function getOutput() { return $this->html; } /** * Sets the HTML output string. * * @param string $output The result value to set. * * @return self */ public function setOutput(string $output) { $this->html = $output; return $this; } /** * Returns the text result string. * * @return ?string */ public function getText() { return $this->text; } /** * Sets the text result string. * * @param string $output The result value to set. * * @return self */ public function setText(string $output) { $this->text = $output; return $this; } /** * Returns the result data properties array (nullable). * * @return ?array */ public function getProperties() { return $this->properties; } /** * Binds the result data properties array. * * @param array $data Data properties to bind. * * @return self */ public function setProperties(array $data) { $this->properties = $data; return $this; } /** * Returns the proper result output value. */ public function __toString() { return $this->getOutput() ?: $this->getText(); } }