6 * @author Michael Wallner <mike@php.net>
10 use hikke\Event\Priority
;
15 * @package hikke\Event
17 class Bucket
extends Priority
35 * Create a new storage bucket
36 * @param object $object
37 * @param float $priority
39 public function __construct($object, $priority) {
40 $this->object = $object;
41 $this->priority
= $priority;
45 * Get the priority of the object in the bucket
48 public function getPriority() {
49 return $this->priority
;
53 * Get the object contained in this bucket
56 public function getObject() {
61 * Get the hash of the object contained in this bucket
64 public function getHash() {
65 if (!isset($this->hash
)) {
66 $this->hash
= spl_object_hash($this->object);