PHP code example of jeckel-lab / advanced-types

1. Go to this page and download the library: Download jeckel-lab/advanced-types 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/ */

    

jeckel-lab / advanced-types example snippets




use Doctrine\ORM\Mapping as ORM;
use JeckelLab\Types\ValueObject\TimeDuration;

/**
 * @ORM\Entity(repositoryClass="App\Repository\TimeEntryRepository")
 */
class TimeEntry
{
    // ...

    /**
     * @ORM\Column(type="time_duration", nullable=true)
     * @var TimeDuration|null
     */
    private $duration;

    // ...
}