protected function getTitle()
 {
     if ($this->restModel !== null) {
         if ($this->restModel->isNewRecord()) {
             return "Adding a new " . strtolower(StringTools::wordifyStringByUpperCase(SolutionSchema::getModelNameFromClass(get_class($this->restModel)))) . " entry";
         } else {
             return ucfirst(strtolower(StringTools::wordifyStringByUpperCase(SolutionSchema::getModelNameFromClass(get_class($this->restModel)))) . " '" . $this->restModel->GetLabel() . "'");
         }
     } else {
         if ($this->restCollection !== null) {
             return StringTools::wordifyStringByUpperCase(StringTools::makePlural(SolutionSchema::getModelNameFromClass($this->restCollection->getModelClassName())));
         } else {
             return "Untitled";
         }
     }
 }
 public function testStringsCanBeWordified()
 {
     $this->assertEquals("This Is My Full Name", StringTools::wordifyStringByUpperCase("ThisIsMyFullName"));
 }
 public function __construct($name)
 {
     $this->name = $name;
     $this->label = StringTools::wordifyStringByUpperCase($name);
 }