Adamgoose\Routing\Annotations\ResourceEndpoint::__construct PHP 메소드

__construct() 공개 메소드

Create a new route definition instance.
public __construct ( array $attributes = [] ) : void
$attributes array
리턴 void
    public function __construct(array $attributes = array())
    {
        foreach ($attributes as $key => $value) {
            $this->{$key} = $value;
        }
        $this->buildPaths();
    }