/** * Wraps the ActiveRecord Receiver object into the ReceiverWrapper. */ public function setReceiver(Receiver $receiver) { $this->pk = $receiver->getPrimaryKey(); $this->class = get_class($receiver); }