php-thrift-mapper:将PHP数组转换为Apache Thrift结构类型

时间:2021-05-10 14:30:56
【文件属性】:
文件名称:php-thrift-mapper:将PHP数组转换为Apache Thrift结构类型
文件大小:30KB
文件格式:ZIP
更新时间:2021-05-10 14:30:56
PHP PHP节俭映射器 将PHP数组转换为Apache Thrift结构类型。 这是什么? 节俭的结构; struct Bonk { 1: string message, 2: i32 type } 生成如下所示PHP源代码。 class Bonk { static $ _TSPEC ; /** * @var string */ public $ message = null ; /** * @var int */ public $ type = null ; public function __construct ( $ vals = null ) { if (! isset ( self :: $ _TSPEC )) { self :: $ _TSPEC = array ( 1 => array
【文件预览】:
php-thrift-mapper-master
----.gitignore(33B)
----README.md(2KB)
----test()
--------CoerceTest.php(4KB)
--------MapTest.php(3KB)
----composer.json(772B)
----phpunit.xml.dist(1KB)
----.coveralls.yml(120B)
----src()
--------ThriftMapperException.php(83B)
--------MapException.php(85B)
--------ThriftMapper.php(5KB)
--------CoerceException.php(88B)
----.travis.yml(258B)
----data()
--------README.md(252B)
--------gen-php()
--------thrift()

网友评论