for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @copyright Copyright (c) Flipbox Digital Limited
* @license https://github.com/flipboxfactory/craft-ember/blob/master/LICENSE
* @link https://github.com/flipboxfactory/craft-ember
*/
namespace flipbox\craft\ember\helpers;
use flipbox\craft\ember\views\ViewInterface;
* @author Flipbox Factory <[email protected]>
* @since 2.0.0
class ViewHelper
{
* @param $view
* @return bool
public static function isView($view)
return $view instanceof ViewInterface;
}
public static function isViewClass($view)
return is_string($view) && (is_subclass_of($view, ViewInterface::class) || $view instanceof ViewInterface);