Doctrine\Tests\Models\Comments\User::getId PHP Метод

getId() публичный Метод

public getId ( )
    public function getId()
    {
        if (!$this->id) {
            $this->id = uniqid();
        }
        return $this->id;
    }

Usage Example

Пример #1
0
 public function __construct(User $user, $comment)
 {
     $this->setParent($user->getId());
     $this->comment = $comment;
 }
All Usage Examples Of Doctrine\Tests\Models\Comments\User::getId