PHP code example of nazonohito51 / typed-properties-cconverter

1. Go to this page and download the library: Download nazonohito51/typed-properties-cconverter 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/ */

    

nazonohito51 / typed-properties-cconverter example snippets



declare(strict_types=1);

namespace TypedPropertiesConverter\Tests\Fixtures;

use TypedPropertiesConverter\Tests\Fixtures\Elements\SomeProperty;

class SomeClass
{
    /**
     * @var SomeProperty
     */
    private $property1;
    /**
     * @var SomeProperty|null
     */
    private $property2;
    /**
     * @var \Fully\Qualified\Class\Name
     */
    private $property3;
    /**
     * @var Relative\Class\Name
     */
    private $property4;
}


declare(strict_types=1);

namespace Some\Name\Space;

use Some\Name\Space\SomeProperty;

class SomeClass
{
    private SomeProperty $property1;
    private ?SomeProperty $property1;
    private \Fully\Qualified\Class\Name $property3;
    private Relative\Class\Name $property4;
}