Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/paste/snippet/PhabricatorPasteSnippet.php
12242 views
1
<?php
2
3
final class PhabricatorPasteSnippet extends Phobject {
4
5
const FULL = 'full';
6
const FIRST_LINES = 'first_lines';
7
const FIRST_BYTES = 'first_bytes';
8
9
private $content;
10
private $type;
11
private $contentLineCount;
12
13
public function __construct($content, $type, $content_line_count) {
14
$this->content = $content;
15
$this->type = $type;
16
$this->contentLineCount = $content_line_count;
17
}
18
19
public function getContent() {
20
return $this->content;
21
}
22
23
public function getType() {
24
return $this->type;
25
}
26
27
public function getContentLineCount() {
28
return $this->contentLineCount;
29
}
30
}
31
32