for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Socializer plugin for Craft CMS 3.x
*
* @link https://enupal.com/
* @copyright Copyright (c) 2019 Enupal LLC
*/
namespace enupal\socializer\records;
use craft\db\ActiveRecord;
use yii\db\ActiveQueryInterface;
use craft\records\Element;
use craft\db\SoftDeleteTrait;
* Class Token record.
* @property int $id
* @property string $userId
* @property string $providerId
* @property string $accessToken
class Token extends ActiveRecord
{
use SoftDeleteTrait;
* @inheritdoc
* @return string
public static function tableName(): string
return '{{%enupalsocializer_tokens}}';
}
* Returns the entry’s element.
* @return ActiveQueryInterface The relational query object.
public function getElement(): ActiveQueryInterface
return $this->hasOne(Element::class, ['id' => 'id']);