2015-10-20 21:07:04 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorPasteSnippet extends Phobject {
|
|
|
|
|
|
|
|
const FULL = 'full';
|
|
|
|
const FIRST_LINES = 'first_lines';
|
|
|
|
const FIRST_BYTES = 'first_bytes';
|
|
|
|
|
|
|
|
private $content;
|
|
|
|
private $type;
|
2017-01-27 00:12:02 +01:00
|
|
|
private $contentLineCount;
|
2015-10-20 21:07:04 +02:00
|
|
|
|
2017-01-27 00:12:02 +01:00
|
|
|
public function __construct($content, $type, $content_line_count) {
|
2015-10-20 21:07:04 +02:00
|
|
|
$this->content = $content;
|
|
|
|
$this->type = $type;
|
2017-01-27 00:12:02 +01:00
|
|
|
$this->contentLineCount = $content_line_count;
|
2015-10-20 21:07:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getContent() {
|
|
|
|
return $this->content;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getType() {
|
|
|
|
return $this->type;
|
|
|
|
}
|
2017-01-27 00:12:02 +01:00
|
|
|
|
|
|
|
public function getContentLineCount() {
|
|
|
|
return $this->contentLineCount;
|
|
|
|
}
|
2015-10-20 21:07:04 +02:00
|
|
|
}
|