Your IP : 216.73.216.45


Current Path : /home/rtorresani/www/vendor/codeception/codeception/src/Codeception/Lib/Generator/
Upload File :
Current File : //home/rtorresani/www/vendor/codeception/codeception/src/Codeception/Lib/Generator/Feature.php

<?php

declare(strict_types=1);

namespace Codeception\Lib\Generator;

use Codeception\Util\Template;

class Feature
{
    protected string $template = <<<EOF
Feature: {{name}}
  In order to ...
  As a ...
  I need to ...

  Scenario: try {{name}}

EOF;

    public function __construct(protected string $name)
    {
    }

    public function produce(): string
    {
        return (new Template($this->template))
            ->place('name', $this->name)
            ->produce();
    }
}