/** * @param Bytes $bytes * @return self */ public static function allocateBytes(Bytes $bytes) { return TeraBytes::allocateUnits(self::calculateUnitsFromBytes($bytes->numberOfBytes())); }
/** * @param Bytes $bytes * @return bool */ public function largerThan(Bytes $bytes) { return $this->numberOfBytes() > $bytes->numberOfBytes(); }