Google\Cloud\Dev\Snippet\Parser\Snippet::__construct PHP Method

__construct() public method

Create a snippet
public __construct ( string $identifier, array $config = [] )
$identifier string The snippet ID
$config array The snippet config
    public function __construct($identifier, array $config = [])
    {
        $this->identifier = $identifier;
        $this->config = $config + ['content' => '', 'fqn' => '', 'index' => 0, 'file' => '', 'line' => 0, 'name' => null];
    }