Xpressengine\Plugin\PluginEntity::getAuthors PHP Method

getAuthors() public method

플러그인 제작자 정보를 조회한다.
public getAuthors ( ) : array
return array
    public function getAuthors()
    {
        $authors = $this->getMetaData('authors');
        if ($authors === null) {
            return [];
        }
        return $authors;
    }

Usage Example

 /**
  * @depends testConstruct
  *
  * @param \Xpressengine\Plugin\PluginEntity $entity
  */
 public function testGetters($entity)
 {
     $this->assertEquals('title', $entity->getTitle());
     $this->assertEquals(__DIR__ . '/plugins/plugin_sample', $entity->getPath());
     $this->assertEquals('khongchi plugin.', $entity->getDescription());
     $this->assertCount(6, $entity->getSupport());
     $this->assertEquals('khongchi/plugin_sample', $entity->getName());
     $this->assertEquals(['xpressengine', 'board'], $entity->getKeywords());
     $this->assertEquals('khongchi', $entity->getAuthors()[0]['name']);
     $this->assertEquals('LGPL-2.0', $entity->getLicense());
 }