<?php
/**
 * Registers the inline-comments-for-post/{{slug}} block.
 *
 * @global array    $attrs   Block attributes passed to the render callback.
 * @global string   $content Block content from InnerBlocks passed to the render callback.
 * @global WP_Block $block   Block registration object.
 *
 * @package inline-comments-for-post
 */

namespace INLINE_COMMENTS_FOR_POST\Blocks;

use INLINE_COMMENTS_FOR_POST\Includes\Block_Base;
use WP_Block;

/**
 *  Class for the inline-comments-for-post/{{slug}} block.
 */
class {{phpName}} extends Block_Base {

	/**
	 * Constructor.
	 */
	public function __construct() {
		$this->_block = '{{slug}}';
		$this->setup_hooks();
	}

	/**
	 * To register action/filter.
	 *
	 * @return void
	 */
	protected function setup_hooks() {}

	/**
	 * Render block.
	 *
	 * @param array    $attributes   Block attributes.
	 * @param string   $content      Block content.
	 * @param WP_Block $block        Block object.
	 * @return string
	 */
	public function render_callback(
		// phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
		array $attributes,
		string $content,
		WP_Block $block
		// phpcs:enable
	): string {
		return '{{name}}';
	}
}
