PHP Classes
elePHPant
Icontem

File: src/org/majkel/tcpdfwarper/generator/ConfigMetaMethod.php

Recommend this page to a friend!
  Classes of Michal Kowalik  >  TCPDF Warper  >  src/org/majkel/tcpdfwarper/generator/ConfigMetaMethod.php  >  Download  
File: src/org/majkel/tcpdfwarper/generator/ConfigMetaMethod.php
Role: Auxiliary script
Content type: text/plain
Description: generator
Class: TCPDF Warper
Create PDF documents using TCPDF fluent interface
Author: By
Last change: generator ConfigItem duplciate code fix
Date: 3 years ago
Size: 741 bytes
 

Contents

Class file image Download
<?php
/**
 * Created by PhpStorm.
 * User: Micha? (majkel) Kowalik <maf.michal@gmail.com>
 * Date: 1/18/2015
 * Time: 19:11
 */

namespace org\majkel\tcpdfwarper\generator;

use
org\majkel\tcpdfwarper\Utils;

/**
 * Class ConfigMetaMethod
 * @package org\majkel\tcpdfwarper\generator
 */
class ConfigMetaMethod {

   
/** @var string */
   
public $name;
   
/** @var string[] */
   
public $args;
   
/** @var string */
   
public $doc;

   
/**
     * @param array $metaMethod
     * @return ConfigMetaMethod
     */
   
public static function fromArray($metaMethod) {
       
$obj = new self();
       
$obj->name = $metaMethod['name'];
       
$obj->args = Utils::getKeyAsArray($metaMethod, 'args');
       
$obj->doc = isset($metaMethod['doc']) ? $metaMethod['doc'] : '';
        return
$obj;
    }
}