src/Shutdown.php
public function register(
    /*string*/ $id,
    callable $callback,
    /*int*/ $priority = self::PRIO_EARLY
  ) {
    // Normalize priority.
    $priority = intval($priority);

    // The priority must be valid.
    if(self::PRIO_START <= $priority && self::PRIO_END >= $priority) {
      // Register new callback.
      $this->registerImpl($id, $callback, $priority);
    }
  }
public function register(
    /*string*/ $id,
    callable $callback,
    /*int*/ $priority = self::PRIO_EARLY
  ) {
    // Normalize priority.
    $priority = intval($priority);

    // The priority must be valid.
    if(self::PRIO_START <= $priority && self::PRIO_END >= $priority) {
      // Register new callback.
      $this->registerImpl($id, $callback, $priority);
    }
  }
public function register ( /*string*/ $ id , callable $ callback , /*int*/ $ priority = self :: PRIO_EARLY ) { // Normalize priority. $ priority = intval ( $ priority ) ; // The priority must be valid. if ( self :: PRIO_START <= $ priority && self :: PRIO_END >= $ priority ) { // Register new callback. $ this -> registerImpl ( $ id , $ callback , $ priority ) ; } }
Registers a new shutdown callback with the specified priority.

@param string $id unique identifier of this callback
@param callable $callback to register
@param int $priority of the callback
Registers a new shutdown callback with the specified priority .