/** * @param Property $property * @return string */ protected function makeORMStringForSingleProperty(Property $property) { $association = $property->getAssociation(); if (!$association) { $association = 0; } $ormStringObjectName = __NAMESPACE__ . "\\ORMString" . $association; $ormStringObject = ORMStringObjectFactory::makeORMStringObject(new $ormStringObjectName(), $property); return $ormStringObject->buildString()->getORMString(); }
/** * @param Property $property * @return string */ protected function makeMethodStringForSingleProperty(Property $property) { $association = $property->getAssociation(); if (!$association) { $association = 0; } $objectName = __NAMESPACE__ . "\\MethodString" . $association; $methodStringObject = new $objectName($property); return $methodStringObject->getStringFromStrategy(); }