Пример #1
0
 /**
  * Calculation of rising and setting.
  * 
  * @param string $graha Graha key (optional)
  * @param null|array $options Options to set (optional)
  * @return \Jyotish\Base\Data
  */
 public function calcRising($graha = Graha::KEY_SY, array $options = null)
 {
     $dataRising = $this->Ganita->setData($this)->getRising($graha, $options);
     $this->data[self::BLOCK_RISING] = $dataRising;
     return $this;
 }
Пример #2
0
 /**
  * Calculation of rising and setting.
  * 
  * @param string $graha Graha key (optional)
  * @param null|array $options Options to set (optional)
  * @return Data
  * @throws Exception\UnderflowException
  */
 public function calcRising($graha = Graha::KEY_SY, array $options = null)
 {
     if (is_null($this->Ganita)) {
         throw new Exception\UnderflowException("Ganita is not setted.");
     }
     $dataRising = $this->Ganita->setData($this)->getRising($graha, $options);
     $this->data[self::BLOCK_RISING] = $dataRising;
     return $this;
 }