Disable and Enable Operations

To receive disable and enable calls, implement the core/suspendable type, as follows:

<?php

  ...
  /**
   * Class enterprise
   * @type("http://odin.com/enterprise/1.0")
   * @implements("http://aps-standard.org/types/core/resource/1.0")
   * @implements("http://aps-standard.org/types/core/suspendable/1.0")
   */
   class enterprise extends \APS\ResourceBase
   {
       .....
       //In additional, declare 'disable' and enable' methods in the class:

       public function disable() {
         // your code here. $this contains current resource, as usual
         ...
       }

       public function enable() {
         ....
       }

Read more: