/** * @param mixed $object * @return SimpleSerializedType */ public function typeForClass($object) { if (is_scalar($object)) { $type = gettype($object); } else { $type = get_class($object); } return new SimpleSerializedType($type, $this->revisionResolver->revisionOf($type)); }
public function typeForClass($object) { $type = get_class($object); return new SimpleSerializedType($type, $this->revisionResolver->revisionOf($type)); }