This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php declare(strict_types=1); | |
use Siler\Route; | |
use function Siler\Swoole\{graphql_handler, http}; | |
require_once __DIR__ . '/bootstrap.php'; | |
global $schema, $root_value, $context; | |
$handler = graphql_handler($schema, $root_value, $context); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:rxdart/rxdart.dart'; | |
class CounterBloc { | |
int initialCount = 20; | |
BehaviorSubject<int> _subjectCounter; | |
CounterBloc() { | |
_subjectCounter = new BehaviorSubject<int>.seeded(this.initialCount); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Notification; | |
class Notification | |
{ | |
public function __contruct($title = null, $subject = null, $message = null) | |
{ | |
$this->title = $title; | |
$this->subject = $subject; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
interface Support {} | |
class TechnicalSupport implements Support {} | |
class FinancialSupport implements Support {} | |
class AdministrativeSupport implements Support {} |