PHP Classes

File: tests/resources/PhpFileTest_SimpleClassToString.php

Recommend this page to a friend!
  Classes of WsdlToPhp   PHP Code Generator   tests/resources/PhpFileTest_SimpleClassToString.php   Download  
File: tests/resources/PhpFileTest_SimpleClassToString.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: PHP Code Generator
Generate PHP code elements programatically
Author: By
Last change: issue #11 - add tests for typed class property
minor code review
issue #11 - implement type hinted class property,
refactor type hinted elements,
refactor assigned value elements,
refactor access restricted elements,
refactor AbstractComponent and inherited classes
Date: 3 years ago
Size: 927 bytes
 

Contents

Class file image Download
<?php

declare(strict_types=1, encoding='UTF-8');

namespace
My\Testing\NamespaceName;

use
My\Testing\ParentNamespace\Model;
use
My\Testing\ParentNamespace\Repository;
use
My\Testing\ParentNamespace\Generator;
use
My\Testing\ParentNamespace\Foo as FooType;

abstract class
Foo extends stdClass
{
   
/**
     * @var string
     */
   
const FOO = 'theValue';
   
   
/**
     * @var string
     */
   
const BAR = 'theOtherValue';
   
   
/**
     * @var int
     */
   
private int $bar = 1;
   
   
/**
     * @var bool
     */
   
public $sample = true;
   
   
/**
     * This method is very useful
     * @date 2012-03-01
     * @return mixed
     */
   
public function getMyValue($asString = true, $unusedParameter)
    {
    }
   
/**
     * This method is very useless
     * @date 2012-03-01
     * @return void
     */
   
public function uselessMethod($uselessParameter = null, $unusedParameter)
    {
    }
}