PHPExiftool\ClassUtils\Builder::__construct PHP Method

__construct() public method

public __construct ( $namespace, $classname, array $properties, $extends = null, array $uses = [], array $classAnnotations = [] )
$properties array
$uses array
$classAnnotations array
    public function __construct($namespace, $classname, array $properties, $extends = null, array $uses = array(), array $classAnnotations = array())
    {
        $namespace = trim($namespace, '\\');
        foreach (explode('\\', $namespace) as $piece) {
            if ($piece == '') {
                continue;
            }
            if (!$this->checkPHPVarName($piece)) {
                throw new \Exception(sprintf('Invalid namespace %s', $namespace));
            }
        }
        if (!$this->checkPHPVarName($classname)) {
            throw new \Exception(sprintf('Invalid namespace %s', $namespace));
        }
        $this->namespace = trim('PHPExiftool\\Driver\\' . $namespace, '\\');
        $this->classname = $classname;
        $this->properties = $properties;
        $this->extends = $extends;
        $this->uses = $uses;
        $this->classAnnotations = $classAnnotations;
        return $this;
    }