getPart() public static method

Gets upper case word admong a string from the end or from the beginning part
public static getPart ( string $optionValue, string $string ) : string
$optionValue string
$string string the string from which we can extract the part
return string
Example #1
0
 /**
  * Gets gather name class
  * @param AbstractModel $model the model for which we generate the folder
  * @return string
  */
 private function getGather(AbstractModel $model)
 {
     return Utils::getPart($this->getOptionGatherMethods(), $model->getCleanName());
 }
Example #2
0
 /**
  *
  */
 public function testGetEndPartStringEndingWithInt()
 {
     $this->assertSame('Operation', Utils::getPart(GeneratorOptions::VALUE_END, 'MyOperation0'));
 }