xprt64/cqrs-es

View on GitHub
src/Dudulina/Query/Answerer/MethodDescriptor.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * Copyright (c) 2018. Constantin Galbenu <xprt64@gmail.com> Toate drepturile rezervate. All rights reserved.
 */

declare(strict_types=1);
namespace Dudulina\Query\Answerer;

class MethodDescriptor
{
    /**
     * @var string
     */
    private $handlerClass;
    /**
     * @var string
     */
    private $methodName;

    public function __construct(
        string $handlerClass, string $methodName
    )
    {
        $this->handlerClass = $handlerClass;
        $this->methodName = $methodName;
    }

    public function getHandlerClass(): string
    {
        return $this->handlerClass;
    }

    public function getMethodName(): string
    {
        return $this->methodName;
    }
}