PHP code example of codeblanche / entity
1. Go to this page and download the library: Download codeblanche/entity library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
codeblanche / entity example snippets
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;
}