public function setPosition($position) {
        $position = intval($position);
        if ($position !== self::POSITION_TOP && $position !== self::POSITION_RIGHT && $position !== self::POSITION_BOTTOM && $position !== self::POSITION_LEFT) {
            throw new CINArgumentException('The text position must be one of a valid constant.', 'position');
        }

        $this->position = $position;
    }
public function setPosition($position) {
        $position = intval($position);
        if ($position !== self::POSITION_TOP && $position !== self::POSITION_RIGHT && $position !== self::POSITION_BOTTOM && $position !== self::POSITION_LEFT) {
            throw new CINArgumentException('The text position must be one of a valid constant.', 'position');
        }

        $this->position = $position;
    }
public function setPosition ( $ position ) { $ position = intval ( $ position ) ; if ( $ position !== self :: POSITION_TOP && $ position !== self :: POSITION_RIGHT && $ position !== self :: POSITION_BOTTOM && $ position !== self :: POSITION_LEFT ) { throw new CINArgumentException ( 'The text position must be one of a valid constant.' , 'position' ) ; } $ this -> position = $ position ; }
Sets the text position for drawing.

@param int $position
Sets the text position for drawing .