PHP Класс Rubenwouters\CrmLauncher\Models\Contact

Наследование: extends Illuminate\Database\Eloquent\Model
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$table string table name

Открытые методы

Метод Описание
cases ( ) * |-------------------------------------------------------------------------- | Relationships |-------------------------------------------------------------------------- | | Relationships of Contact model |
createContact ( string $type, array $message ) : object Inserts new contact in DB
getContact ( string $type, string $id ) : collection Check if contact exists, if not create a new user
innerComment ( )
messages ( )
scopeFindByFbId ( $query, $id ) * |-------------------------------------------------------------------------- | Scopes |-------------------------------------------------------------------------- | | Scopes of Contact model |
scopeFindByTwitterId ( $query, $id )

Описание методов

cases() публичный метод

* |-------------------------------------------------------------------------- | Relationships |-------------------------------------------------------------------------- | | Relationships of Contact model |
public cases ( )

createContact() публичный метод

Inserts new contact in DB
public createContact ( string $type, array $message ) : object
$type string
$message array
Результат object

getContact() публичный метод

Check if contact exists, if not create a new user
public getContact ( string $type, string $id ) : collection
$type string
$id string
Результат collection

innerComment() публичный метод

public innerComment ( )

messages() публичный метод

public messages ( )

scopeFindByFbId() публичный метод

* |-------------------------------------------------------------------------- | Scopes |-------------------------------------------------------------------------- | | Scopes of Contact model |
public scopeFindByFbId ( $query, $id )

scopeFindByTwitterId() публичный метод

public scopeFindByTwitterId ( $query, $id )

Описание свойств

$table защищенное свойство

table name
protected string $table
Результат string