src/ArunCore/Core/CodeBuilders/DomainManipulator.php
public function addSchemaToClassBottom($domainClass, $actionSchema)
    {
        $lastClassBracketIdx = $this->getLastCurlBracketPositionFromClass($domainClass);

        $domainClass = substr_replace($domainClass, $actionSchema, $lastClassBracketIdx);
        $domainClass .= "\n}";

        return $domainClass;
    }
public function addSchemaToClassBottom($domainClass, $actionSchema)
    {
        $lastClassBracketIdx = $this->getLastCurlBracketPositionFromClass($domainClass);

        $domainClass = substr_replace($domainClass, $actionSchema, $lastClassBracketIdx);
        $domainClass .= "\n}";

        return $domainClass;
    }
public function addSchemaToClassBottom ( $ domainClass , $ actionSchema ) { $ lastClassBracketIdx = $ this -> getLastCurlBracketPositionFromClass ( $ domainClass ) ; $ domainClass = substr_replace ( $ domainClass , $ actionSchema , $ lastClassBracketIdx ) ; $ domainClass .= "\n}" ; return $ domainClass ; }
Append an action schema to an existing class

@param $domainClass
@param $actionSchema
@return mixed|string

@throws
Append an action schema to an existing class