* * int
* * float
* * string
- * * references
- * * arrays
- * * objects (incl. \Serializable, and classes implementing magic and custom __serialize)
+ * * reference
+ * * array
+ * * object (incl. \Serializable, and classes implementing magic and custom __serialize)
*
* @param mixed $data PHP value(s).
* @param Serializer|null $serializer Custom serializer.
* @return string serialized ION data
- * @throws ion\Exception
+ * @throws \ion\Exception
*/
function serialize(mixed $data, ?Serializer $serializer = null) : string {}
/**
* Unserialize ION data (stream) as PHP value(s).
*
- * @param string|resource $data Serialized ION data, either as string buffer or stream,.
+ * @param string|resource $data Serialized ION data, either as string buffer or stream.
* @return mixed unserialized PHP values
- * @throws ion\Exception
+ * @throws \ion\Exception
*/
function unserialize($data, ?Unserializer $unserializer = null) : mixed {}
/**
* An ION Timestamp.
- * @see https://amzn.github.io/ion-docs/docs/spec.html#timestamp the ION sepc's timestamp definintion
+ * @see https://amzn.github.io/ion-docs/docs/spec.html#timestamp the ION spec's timestamp definition
* @see https://php.net/date PHP's date documentation
*/
class Timestamp extends \DateTime {
namespace ion\Symbol;
/**
- * The import location (referring to a shared table= of a symbol.
+ * The import location (referring to a shared table) of a symbol.
*/
class ImportLocation {
/**
public function findLocal(string|int $id) : ?\ion\Symbol;
}
-namespace ion\Symbol\Table;
-
-/**
- * Get the built-in PHP shared symbol table.
- *
- * @see \ion\Symbol\Table\PHP
- * @return \ion\Symbol\Table The builtin PHP shared symbol table.
- */
-function PHP() : \ion\Symbol\Table {}
-
-/**
- * Get the built-in ION system shared symbol table.
- *
- * @see \ion\Symbol\Table\System
- * @return \ion\Symbol\Table The builtin ION system shared symbol table.
- */
-function System() : \ion\Symbol\Table {}
-
/**
* The built-in ION system symbols.
*/
public function toSID() : int {}
/** @alias ion\Symbol\Enum::toString */
public function toString() : string {}
+
+ /**
+ * Get the built-in ION system shared symbol table.
+ *
+ * @return Table\Shared The system symbol table.
+ */
+ public static function asTable() : Table\Shared {}
}
/**
public function toSID() : int {}
/** @alias ion\Symbol\Enum::toString */
public function toString() : string {}
+
+ /**
+ * Get the built-in PHP shared symbol table.
+ *
+ * @return Table\Shared The builtin PHP shared symbol table.
+ */
+ public static function asTable() : Table\Shared {}
}
+namespace ion\Symbol\Table;
+
/**
* A local symbol table.
*
namespace ion\Reader\Buffer;
/**
- * ION string buffer reader.
+ * ION buffer reader.
*/
class Reader extends \ion\Reader\Reader implements \ion\Reader\Buffer {
/**