Вход Регистрация
Файл: sngine-v2.8/Script/includes/libs/HybridAuth/User/Activity.php
Строк: 52
<?php
/*!
* Hybridauth
* https://hybridauth.github.io | https://github.com/hybridauth/hybridauth
*  (c) 2017 Hybridauth authors | https://hybridauth.github.io/license.html
*/

namespace HybridauthUser;

use 
HybridauthExceptionUnexpectedValueException;

/**
 * HybridauthUserActivity
 */
final class Activity
{
    
/**
    * activity id on the provider side, usually given as integer
    *
    * @var string
    */
    
public $id null;

    
/**
    * activity date of creation
    *
    * @var string
    */
    
public $date null;

    
/**
    * activity content as a string
    *
    * @var string
    */
    
public $text null;

    
/**
    * user who created the activity
    *
    * @var object
    */
    
public $user null;

    
/**
    *
    */
    
public function __construct()
    {
        
$this->user = new stdClass();

        
// typically, we should have a few information about the user who created the event from social apis
        
$this->user->identifier  null;
        
$this->user->displayName null;
        
$this->user->profileURL  null;
        
$this->user->photoURL    null;
    }

    
/**
     * Prevent the providers adapters from adding new fields.
     *
     * @var mixed $value
     *
     * @var string $name
     *
     * @throws UnexpectedValueException
     */
    
public function __set($name$value)
    {
        
// phpcs:ignore
        
throw new UnexpectedValueException(sprintf('Adding new property "%s' to %s is not allowed.', $name, __CLASS__));
    }
}
Онлайн: 0
Реклама