for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Jasny\PhpdocParser\Tag;
/**
* Custom logic for a tag.
*/
class CustomTag extends AbstractTag
{
* @var callable
protected $process;
* Class constructor.
*
* @param string $name
* @param callable $process
public function __construct(string $name, callable $process)
parent::__construct($name);
$this->process = $process;
}
* Process a notation.
* @param array $notations
* @param string $value
* @return array
public function process(array $notations, string $value): array
return call_user_func($this->process, $notations, $value);