Row.php 1.35 KB
<?php 

namespace Phalcon\Mvc\Model {

	/**
	 * Phalcon\Mvc\Model\Row
	 *
	 * This component allows Phalcon\Mvc\Model to return rows without an associated entity.
	 * This objects implements the ArrayAccess interface to allow access the object as object->x or array[x].
	 */
	
	class Row implements \ArrayAccess, \Phalcon\Mvc\Model\ResultInterface {

		/**
		 * Set the current object's state
		 *
		 * @param int $dirtyState
		 */
		public function setDirtyState($dirtyState){ }


		/**
		 * Checks whether offset exists in the row
		 *
		 * @param int $index
		 * @return boolean
		 */
		public function offsetExists($index){ }


		/**
		 * Gets a record in a specific position of the row
		 *
		 * @param int $index
		 * @return string|\Phalcon\Mvc\ModelInterface
		 */
		public function offsetGet($index){ }


		/**
		 * Rows cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface
		 *
		 * @param int $index
		 * @param \Phalcon\Mvc\ModelInterface $value
		 */
		public function offsetSet($index, $value){ }


		/**
		 * Rows cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface
		 *
		 * @param int $offset
		 */
		public function offsetUnset($offset){ }


		/**
		 * Returns the instance as an array representation
		 *
		 * @return array
		 */
		public function toArray(){ }

	}
}