Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / xhprof / query / PhabricatorXHProfSampleQuery.php
blob2001fec0c7224d70c8bc70376c490feed74a68ed
1 <?php
3 final class PhabricatorXHProfSampleQuery
4 extends PhabricatorCursorPagedPolicyAwareQuery {
6 private $ids;
7 private $phids;
9 public function withIDs(array $ids) {
10 $this->ids = $ids;
11 return $this;
14 public function withPHIDs(array $phids) {
15 $this->phids = $phids;
16 return $this;
19 public function newResultObject() {
20 return new PhabricatorXHProfSample();
23 protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
24 $where = parent::buildWhereClauseParts($conn);
26 if ($this->ids !== null) {
27 $where[] = qsprintf(
28 $conn,
29 'id IN (%Ld)',
30 $this->ids);
33 if ($this->phids !== null) {
34 $where[] = qsprintf(
35 $conn,
36 'phid IN (%Ls)',
37 $this->phids);
40 return $where;
43 public function getQueryApplicationClass() {
44 return 'PhabricatorXHProfApplication';