public function push(TaskInterface $task)
    {
        return (bool) $this->getPersistence()->insert($this->getTableName(), [
            'message' => $this->serializeTask($task),
            'created_at' => $this->getPersistence()->getPlatForm()->getNowExpression()
        ]);
    }
public function push(TaskInterface $task)
    {
        return (bool) $this->getPersistence()->insert($this->getTableName(), [
            'message' => $this->serializeTask($task),
            'created_at' => $this->getPersistence()->getPlatForm()->getNowExpression()
        ]);
    }
public function push ( TaskInterface $ task ) { return ( bool ) $ this -> getPersistence ( ) -> insert ( $ this -> getTableName ( ) , [ 'message' => $ this -> serializeTask ( $ task ) , 'created_at' => $ this -> getPersistence ( ) -> getPlatForm ( ) -> getNowExpression ( ) ] ) ; }
Insert a new task into the queue table.

@param TaskInterface $task
@return bool
Insert a new task into the queue table .