Gc\Datatype\AbstractDatatype::getInfos PHP Method

getInfos() public method

Return datatype informations
public getInfos ( ) : false | string
return false | string
    public function getInfos()
    {
        $object = new ReflectionObject($this);
        $directory = dirname($object->getFileName());
        $filename = $directory . '/datatype.info';
        $info = new Info();
        if ($info->fromFile($filename) !== true) {
            return false;
        }
        return $info->render();
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Test
  *
  * @return void
  */
 public function testGetInfos()
 {
     $this->assertFalse($this->object->getInfos());
 }