1<?php 2 3namespace Basho\Riak\Command\Bucket; 4 5use Basho\Riak\Bucket; 6 7/** 8 * Container for a response related to an operation on an object 9 * 10 * @author Christopher Mancini <cmancini at basho d0t com> 11 */ 12class Response extends \Basho\Riak\Command\Response 13{ 14 /** 15 * Bucket from the command re-instantiated with its fetched properties 16 * 17 * @var Bucket|null 18 */ 19 protected $bucket = null; 20 21 protected $modified = ''; 22 23 public function __construct($success = true, $code = 0, $message = '', Bucket $bucket = null, $modified = '') 24 { 25 parent::__construct($success, $code, $message); 26 27 $this->bucket = $bucket; 28 $this->modified = $modified; 29 } 30 31 /** 32 * getBucket 33 * 34 * @return Bucket 35 */ 36 public function getBucket() 37 { 38 return $this->bucket; 39 } 40 41 /** 42 * Retrieves the last modified time of the object 43 * 44 * @return string 45 */ 46 public function getLastModified() 47 { 48 return $this->modified; 49 } 50} 51