init ( $config )

Constructs a new instance of this class, and allows chaining.

Access

public static

Parameters

Parameter

Type

Required

Description

$config

array

Required

An associative array representing the Hadoop step configuration.

Returns

Type

Description

$this

A reference to the current instance.

Source

Method defined in utilities/stepconfig.class.php | Toggle source view (10 lines) | View on GitHub

public static function init($config)
{
    if (version_compare(PHP_VERSION, '5.3.0', '<'))
    {
        throw new Exception('PHP 5.3 or newer is required to instantiate a new class with CLASS::init().');
    }

    $self = get_called_class();
    return new $self($config);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback