function __construct() { if ($this->listeners === null) { $this->listeners = new ArrayList(); } $this->contactManager = ContactManager::getInstance(); }