src/Fields/SimpleSpamGuardField.php
public function setValue($value, $data = null)
    {
        // Check Value Type:
        
        if (is_array($value)) {
            
            // Define Field Values:
            
            $this->honeypot->setValue(isset($value['value']) ? $value['value'] : null);
            $this->timestamp->setValue(isset($value['timestamp']) ? $value['timestamp'] : null);
            
            // Define Self Value:
            
            $this->value = $this->honeypot->dataValue();
            
        }
        
        // Answer Self:
        
        return $this;
    }
public function setValue($value, $data = null)
    {
        // Check Value Type:
        
        if (is_array($value)) {
            
            // Define Field Values:
            
            $this->honeypot->setValue(isset($value['value']) ? $value['value'] : null);
            $this->timestamp->setValue(isset($value['timestamp']) ? $value['timestamp'] : null);
            
            // Define Self Value:
            
            $this->value = $this->honeypot->dataValue();
            
        }
        
        // Answer Self:
        
        return $this;
    }
public function setValue ( $ value , $ data = null ) { // Check Value Type: if ( is_array ( $ value ) ) { // Define Field Values: $ this -> honeypot -> setValue ( isset ( $ value [ 'value' ] ) ? $ value [ 'value' ] : null ) ; $ this -> timestamp -> setValue ( isset ( $ value [ 'timestamp' ] ) ? $ value [ 'timestamp' ] : null ) ; // Define Self Value: $ this -> value = $ this -> honeypot -> dataValue ( ) ; } // Answer Self: return $ this ; }
Defines the field value.

@param mixed $value
@param array $data

@return $this
Defines the field value .