symfony-doge/veslo

View on GitHub
src/AnthillBundle/Dto/Vacancy/Scanner/StrategyDto.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

/*
 * This file is part of the Veslo project <https://github.com/symfony-doge/veslo>.
 *
 * (C) 2019 Pavel Petrov <itnelo@gmail.com>.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @license https://opensource.org/licenses/GPL-3.0 GPL-3.0
 */

declare(strict_types=1);

namespace Veslo\AnthillBundle\Dto\Vacancy\Scanner;

/**
 * Context of parsing algorithm used by scanner
 */
class StrategyDto
{
    /**
     * Parsing algorithm name
     *
     * @var string
     */
    private $name;

    /**
     * Sets name for parsing algorithm used by scanner
     *
     * @param string $name Parsing algorithm name
     *
     * @return void
     */
    public function setName(string $name): void
    {
        $this->name = $name;
    }

    /**
     * Returns name of parsing algorithm used by scanner
     *
     * @return string|null
     */
    public function getName(): ?string
    {
        return $this->name;
    }
}