codeblanche/entity

一切为了实体,实体为了一切

1.5.1 2014-12-16 13:17 UTC

This package is not auto-updated.

Last update: 2024-09-23 12:57:39 UTC


README

一切为了实体,实体为了一切。

更多文档即将到来。

示例

查看 fixtures/* 以获取其他示例。其中最完整的是 MortadellaEntity

class MyEntity extends \Entity\Entity
{

    /**
     * @var boolean Alias of bool
     */
    public $testBoolean = true;

    /**
     * @var integer Alias of int
     */
    public $testInteger = 12345;

    /**
     * @var string
     */
    public $testString = "test string";

    /**
     * @var mixed
     */
    public $testMixed ;

    /**
     * @var array
     */
    public $testArray = array('1', '2', '3');

    /**
     * @var Entity\Sample\ObjectPropertyEntityMarshal[]
     */
    public $testTypedArray1;

    /**
     * @var array<Entity\Sample\ObjectPropertyEntityMarshal>
     */
    public $testTypedArray2;

    /**
     * @var integer[]
     */
    public $testTypedArray4;

}