src/ArunCore/Core/CodeBuilders/DomainManipulator.php
private function isActionMethodAlreadyPresent(string $actionName, string $domainClassCode): bool
    {
        $functionPattern = '/public function[ \t\n\r]+' . $actionName . '[ \t\n\r]*\([ \t\r\n]*.*[ \t\r\n]*\)/';

        return preg_match($functionPattern, $domainClassCode) > 0 ? true : false;
    }
private function isActionMethodAlreadyPresent(string $actionName, string $domainClassCode): bool
    {
        $functionPattern = '/public function[ \t\n\r]+' . $actionName . '[ \t\n\r]*\([ \t\r\n]*.*[ \t\r\n]*\)/';

        return preg_match($functionPattern, $domainClassCode) > 0 ? true : false;
    }
private function isActionMethodAlreadyPresent ( string $ actionName , string $ domainClassCode ) : bool { $ functionPattern = '/public function[ \t\n\r]+' . $ actionName . '[ \t\n\r]*\([ \t\r\n]*.*[ \t\r\n]*\)/' ; return preg_match ( $ functionPattern , $ domainClassCode ) > 0 ? true : false ; }
Check if the Action method is already present in the domain class code

@param string $actionName
@param string $domainClassCode

@return bool
Check if the Action method is already present in the domain class code