for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is a part of Sculpin.
*
* (c) Dragonfly Development Inc.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symplify\PHP7_Sculpin\Formatter;
use Dflydev\DotAccessConfiguration\Configuration;
final class FormatContext
{
/**
* @var string
private $templateId;
private $template;
* @var Configuration
private $data;
public function __construct(string $templateId, string $template, array $data)
$this->templateId = $templateId;
$this->template = $template;
$this->data = new Configuration($data);
}
public function templateId() : string
return $this->templateId;
public function template() : string
return $this->template;
public function data() : Configuration
return $this->data;
public function formatter() : string
return $this->data->get('formatter');