src/VisitInfo.php
/**
     * Create a new instance from an array
     * @param array $values
     * @return self
     */
Create a new instance from an array
@param array $values
@return self
Create a new instance from an array @param array $values @return self
public static function fromArray(array $values): self
    {
        $instance = new static();
        $instance->setTimestamp($values['timestamp'] ?? '');
        $instance->setIpHash($values['ip_hash'] ?? '');
        $instance->setUrl($values['url'] ?? '');
        $instance->setReferrer($values['referrer'] ?? '');
        return $instance;
    }
public static function fromArray ( array $ values ) : self { $ instance = new static ( ) ; $ instance -> setTimestamp ( $ values [ 'timestamp' ] ?? '' ) ; $ instance -> setIpHash ( $ values [ 'ip_hash' ] ?? '' ) ; $ instance -> setUrl ( $ values [ 'url' ] ?? '' ) ; $ instance -> setReferrer ( $ values [ 'referrer' ] ?? '' ) ; return $ instance ; }
Create a new instance from an array
 @param array $values
 @return self
Create a new instance from an array @param array $values @return self