PHP Classes

File: docs/api/files/Implementation/CallableThread.php.txt

Recommend this page to a friend!
  Classes of AlexanderC   Threadator   docs/api/files/Implementation/CallableThread.php.txt   Download  
File: docs/api/files/Implementation/CallableThread.php.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: Threadator
Create threads and send messages between them
Author: By
Last change: Update of docs/api/files/Implementation/CallableThread.php.txt
Date: 5 months ago
Size: 855 bytes
 

Contents

Class file image Download
<?php /** * @author AlexanderC <self@alexanderc.me> * @date 4/7/14 * @time 10:32 PM */ namespace Threadator\Implementation; use Threadator\Thread; class CallableThread extends Thread { /** * @var callable */ protected $callable; /** * @param callable $callable * @return $this */ public function setCallable(callable $callable) { $this->callable = $callable; return $this; } /** * @return callable */ public function getCallable() { return $this->callable; } /** * @return void */ protected function _run() { call_user_func($this->callable, $this); } /** * @return void */ protected function unload() { } /** * @return void */ protected function init() { } }