HEX
Server: Apache
System: Linux ecngx285.inmotionhosting.com 4.18.0-553.79.1.lve.el8.x86_64 #1 SMP Wed Oct 15 17:59:35 UTC 2025 x86_64
User: zeusxp5 (3862)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /home/zeusxp5/tour.kamille.us/wp-content/plugins/surecart/app/src/Models/VariantOptionValue.php
<?php
namespace SureCart\Models;

use SureCart\Models\DatabaseModel;

/**
 * The integration model.
 */
class VariantOptionValue extends DatabaseModel {
	/**
	 * The integrations table name.
	 *
	 * @var string
	 */
	protected $table_name = 'surecart_variant_option_values';

	/**
	 * The object name
	 *
	 * @var string
	 */
	protected $object_name = 'variant_option_values';

	/**
	 * Fillable items.
	 *
	 * @var array
	 */
	protected $fillable = [ 'id', 'value', 'name', 'post_id', 'product_id', 'account_id', 'updated_at', 'created_at' ];

	/**
	 * Create a new model
	 *
	 * @param array $attributes Attributes to create.
	 *
	 * @return $this|false
	 */
	protected function create( $attributes = [] ) {
		$attributes['account_id'] = \SureCart::account()->id;
		return parent::create( $attributes );
	}

	/**
	 * Update a model
	 *
	 * @param array $attributes Attributes to create.
	 *
	 * @return $this|false
	 */
	protected function update( $attributes = [] ) {
		$attributes['account_id'] = \SureCart::account()->id;
		return parent::update( $attributes );
	}
}