PHP Classes

File: src/Models/BasicObject.php

Recommend this page to a friend!
  Classes of Joseluis Laso   PHP Telegram CLI Wrapper   src/Models/BasicObject.php   Download  
File: src/Models/BasicObject.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Telegram CLI Wrapper
Send messages and other commands to Telegram users
Author: By
Last change:
Date: 8 years ago
Size: 427 bytes
 

Contents

Class file image Download
<?php

namespace TelegramCliWrapper\Models;


abstract class
BasicObject
{
    public function
__construct($item = null)
    {
        if (!
$item) {
            return;
        }
        foreach (
get_object_vars($item) as $key => $value) {
            if (!
is_object($value)) {
               
$this->{$key} = $value;
            }
        }
    }

   
/**
     * @return string
     */
   
abstract public function getId();

}