BEdita API doc | 4-cactus
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Download

Namespaces

  • BEdita
    • API
      • Auth
      • Controller
        • Admin
        • Component
        • Model
      • Error
      • Event
      • Exception
      • Middleware
      • Model
        • Action
      • Network
        • Exception
      • Shell
      • TestSuite
      • Utility
    • Core
      • Configure
        • Engine
      • Database
        • Type
      • Exception
      • Filesystem
        • Adapter
        • Exception
        • Thumbnail
      • I18n
      • Job
        • Service
      • Mailer
        • Preview
        • Transport
      • Model
        • Action
        • Behavior
        • Entity
        • Table
        • Validation
      • ORM
        • Inheritance
        • Locator
        • Rule
      • Shell
        • Task
      • State
      • TestSuite
        • Fixture
      • Utility

Traits

  • SingletonTrait

Trait SingletonTrait

Singleton class.

Direct Known Users

BEdita\Core\Filesystem\FilesystemRegistry, BEdita\Core\State\CurrentApplication, BEdita\Core\Utility\LoggedUser

Namespace: BEdita\Core
Since: 4.0.0
See: https://github.com/sebastianbergmann/phpunit/tree/5.6/tests/_files/Singleton.php
Located at Core/src/SingletonTrait.php

Methods summary

final protected
# __construct( )

Singleton constructor.

Singleton constructor.

The constructor is declared private in order to prevent new instances from being created.

Codecoverageignore

final private
# __clone( )

Singleton clone method.

Singleton clone method.

This method is declared private in order to prevent existing instances from being cloned.

Codecoverageignore

final public static BEdita\Core\SingletonTrait|null
# getInstance( )

Singleton getter.

Singleton getter.

Use this method in order to get the singleton instance

Returns

BEdita\Core\SingletonTrait|null

Properties summary

private static BEdita\Core\SingletonTrait|null $uniqueInstance

Singleton instance.

Singleton instance.

# null
BEdita API doc | 4-cactus API documentation generated by ApiGen