AppserverIo\Appserver\Core\Api\Node\AppNodeInterface::getName PHP Method

getName() public method

Returns the application name.
public getName ( ) : string
return string The unique application name
    public function getName();

Usage Example

 /**
  * Convert's the passed application into a DTO.
  *
  * @param \AppserverIo\Appserver\Core\Api\Node\AppNodeInterface $appNode The application node to convert
  *
  * @return \AppserverIo\Apps\Api\TransferObject\ApplicationOverviewData The DTO
  */
 public function toApplicationOverviewData(AppNodeInterface $appNode)
 {
     $overviewData = new ApplicationOverviewData();
     $overviewData->setId($appNode->getPrimaryKey());
     $overviewData->setName($appNode->getName());
     $overviewData->setWebappPath($appNode->getWebappPath());
     return $overviewData;
 }
AppNodeInterface