$token->getID(), 'name' => $token->getName(), 'phid' => $token->getPHID(), ); } return $list; } public function buildTokenGivenDicts(array $tokens_given) { assert_instances_of($tokens_given, 'PhabricatorTokenGiven'); $list = array(); foreach ($tokens_given as $given) { $list[] = array( 'authorPHID' => $given->getAuthorPHID(), 'objectPHID' => $given->getObjectPHID(), 'tokenPHID' => $given->getTokenPHID(), 'dateCreated' => $given->getDateCreated(), ); } return $list; } }