PHP Class TextAnalysis\Documents\ContentDocument

Author: yooper
Show file Open project: yooper/php-text-analysis

Protected Properties

Property Type Description
$content string
$counter
$id mixed

Public Methods

Method Description
__construct ( string $content, mixed $id = null )
getContent ( ) : string
getId ( ) : integer | string

Method Details

__construct() public method

public __construct ( string $content, mixed $id = null )
$content string
$id mixed uses a counter if empty

getContent() public method

public getContent ( ) : string
return string

getId() public method

public getId ( ) : integer | string
return integer | string

Property Details

$content protected property

protected string $content
return string

$counter protected static property

protected static $counter

$id protected property

protected mixed $id
return mixed