/** * @param \Ackintosh\Snidel\Result\Result * @throws \RuntimeException */ public function enqueue(Result $result) { if ($this->isExceedsLimit($serialized = ResultFormatter::serialize($result)) && $this->isExceedsLimit($serialized = ResultFormatter::minifyAndSerialize($result))) { throw new \RuntimeException('the fork which includes result exceeds the message queue limit.'); } return $this->sendMessage($serialized); }