- // Is this a ManageableApplication instance?
- if (is_null($applicationInstance)) {
- // Something really bad went wrong
- throw new NullPointerException($this, self::EXCEPTION_IS_NULL_POINTER);
- } elseif (!$applicationInstance instanceof ManageableApplication) {
- // Something went badly wrong
- throw new InvalidInterfaceException(array($this, 'ManageableApplication'), self::EXCEPTION_REQUIRED_INTERFACE_MISSING);
- } // END - if
-