Newscoop\Storage\Item::getType PHP 메소드

getType() 공개 메소드

Get type
public getType ( ) : string
리턴 string
    public function getType()
    {
        if ($this->storage->isDir($this->key)) {
            return self::TYPE_DIR;
        }
        return pathinfo($this->key, PATHINFO_EXTENSION);
    }