public function process()
    {
        $operands = $this->getOperands();

        if ($operands->exclusivelyRecord() === false) {
            $msg = "The FieldValue operator only accepts operands with a cardinality of record.";
            throw new OperatorProcessingException($msg, $this, OperatorProcessingException::WRONG_CARDINALITY);
        }

        $fieldIdentifier = $this->getExpression()->getFieldIdentifier();

        return $operands[0][$fieldIdentifier];
    }
public function process()
    {
        $operands = $this->getOperands();

        if ($operands->exclusivelyRecord() === false) {
            $msg = "The FieldValue operator only accepts operands with a cardinality of record.";
            throw new OperatorProcessingException($msg, $this, OperatorProcessingException::WRONG_CARDINALITY);
        }

        $fieldIdentifier = $this->getExpression()->getFieldIdentifier();

        return $operands[0][$fieldIdentifier];
    }
public function process ( ) { $ operands = $ this -> getOperands ( ) ; if ( $ operands -> exclusivelyRecord ( ) === false ) { $ msg = "The FieldValue operator only accepts operands with a cardinality of record." ; throw new OperatorProcessingException ( $ msg , $ this , OperatorProcessingException :: WRONG_CARDINALITY ) ; } $ fieldIdentifier = $ this -> getExpression ( ) -> getFieldIdentifier ( ) ; return $ operands [ 0 ] [ $ fieldIdentifier ] ; }
Process the FieldValue object.

@return mixed|null A QTI Runtime compliant value or null if there is no field with that identifier.
@throws \qtism\runtime\expressions\operators\OperatorProcessingException
Process the FieldValue object .